{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理编码与逆地理编码  \n",
    "思考：能够分析到所要找的地理编码进行相关的搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "key_ga =\"78c38dd8212a470f639758160acc4c05\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省东莞市霞坑村委', 'country': '中国', 'province': '广东省', 'citycode': '0769', 'city': '东莞市', 'district': [], 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '441900', 'street': [], 'number': [], 'location': '114.028745,22.968248', 'level': '兴趣点'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省东莞市霞坑村委</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>0769</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>441900</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>114.028745,22.968248</td>\n",
       "      <td>兴趣点</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province citycode city district township  adcode  \\\n",
       "0        广东省东莞市霞坑村委      中国      广东省     0769  东莞市       []       []  441900   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  114.028745,22.968248   兴趣点                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "家地理编码: 114.028745,22.968248\n"
     ]
    }
   ],
   "source": [
    "# A-1 地理编码\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_ga,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "家 = geocode(address='广东省东莞市常平镇霞坑村委霞晖花园')\n",
    "print(家)\n",
    "df_家地理编码 = pd.json_normalize(家['geocodes'])\n",
    "display(df_家地理编码)\n",
    "家地理编码 = 家['geocodes'][0]['location']\n",
    "print(\"家地理编码:\",家地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'addressComponent': {'city': '东莞市', 'province': '广东省', 'adcode': '441900', 'district': [], 'towncode': '441900110000', 'streetNumber': {'number': '92号', 'location': '114.027974,22.9674383', 'direction': '西南', 'distance': '119.752', 'street': '常东路'}, 'country': '中国', 'township': '常平镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0769'}, 'formatted_address': '广东省东莞市常平镇霞坑村'}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>东莞市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>广东省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>441900</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>441900110000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>92号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>114.027974,22.9674383</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>西南</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>119.752</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>常东路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>常平镇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[[]]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>0769</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>广东省东莞市常平镇霞坑村</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                       0\n",
       "status                                                                 1\n",
       "info                                                                  OK\n",
       "infocode                                                           10000\n",
       "regeocode.addressComponent.city                                      东莞市\n",
       "regeocode.addressComponent.province                                  广东省\n",
       "regeocode.addressComponent.adcode                                 441900\n",
       "regeocode.addressComponent.district                                   []\n",
       "regeocode.addressComponent.towncode                         441900110000\n",
       "regeocode.addressComponent.streetNumber.number                       92号\n",
       "regeocode.addressComponent.streetNumber.location   114.027974,22.9674383\n",
       "regeocode.addressComponent.streetNumber.direction                     西南\n",
       "regeocode.addressComponent.streetNumber.distance                 119.752\n",
       "regeocode.addressComponent.streetNumber.street                       常东路\n",
       "regeocode.addressComponent.country                                    中国\n",
       "regeocode.addressComponent.township                                  常平镇\n",
       "regeocode.addressComponent.businessAreas                            [[]]\n",
       "regeocode.addressComponent.building.name                              []\n",
       "regeocode.addressComponent.building.type                              []\n",
       "regeocode.addressComponent.neighborhood.name                          []\n",
       "regeocode.addressComponent.neighborhood.type                          []\n",
       "regeocode.addressComponent.citycode                                 0769\n",
       "regeocode.formatted_address                                 广东省东莞市常平镇霞坑村"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-2 基础逆地理编码分析\n",
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_ga,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'roadlevel':roadlevel,\n",
    "        'homeorcorp':homeorcorp,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "家逆地理编码 = regeocode(家地理编码)\n",
    "print(家逆地理编码)\n",
    "df_家逆地理编码 = pd.json_normalize(家逆地理编码).T\n",
    "display(df_家逆地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'roads': [{'id': '0769F50F0130017926', 'location': '114.029,22.9681', 'direction': '东北', 'name': '元霞路', 'distance': '24.4952'}, {'id': '0769F50F0130017922', 'location': '114.028,22.9683', 'direction': '东', 'name': '霞坑南门路', 'distance': '42.9154'}, {'id': '0769F50F013001603387', 'location': '114.03,22.9683', 'direction': '西', 'name': '塘霞路', 'distance': '97.0636'}], 'roadinters': [{'second_name': '元霞路', 'first_id': '0769F50F0130017922', 'second_id': '0769F50F0130017926', 'location': '114.0283744,22.96800083', 'distance': '46.8523', 'first_name': '霞坑南门路', 'direction': '东北'}], 'formatted_address': '广东省东莞市常平镇霞坑村', 'addressComponent': {'city': '东莞市', 'province': '广东省', 'adcode': '441900', 'district': [], 'towncode': '441900110000', 'streetNumber': {'number': '92号', 'location': '114.027974,22.9674383', 'direction': '西南', 'distance': '119.752', 'street': '常东路'}, 'country': '中国', 'township': '常平镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0769'}, 'aois': [], 'pois': [{'id': 'B03017W3YP', 'direction': '东北', 'businessarea': [], 'address': '元霞路附近', 'poiweight': '0.135478', 'name': '霞坑村村委会', 'location': '114.028837,22.968331', 'distance': '13.1877', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'}, {'id': 'B0FFFSECQS', 'direction': '西南', 'businessarea': [], 'address': [], 'poiweight': '0.171786', 'name': '铭记驾校报名处', 'location': '114.027831,22.967725', 'distance': '110.173', 'tel': [], 'type': '科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所'}, {'id': 'B03017U02Z', 'direction': 'Center', 'businessarea': [], 'address': '东莞市', 'poiweight': '0.42738', 'name': '霞坑村', 'location': '114.028745,22.968248', 'distance': '0', 'tel': [], 'type': '地名地址信息;普通地名;村庄级地名'}, {'id': 'B0FFG8ZF92', 'direction': '东南', 'businessarea': [], 'address': '常平镇元霞路霞坑村委对面新宅区A栋', 'poiweight': '0.176301', 'name': '沙县小吃(锦庭公寓东北)', 'location': '114.029460,22.967087', 'distance': '148.424', 'tel': '13616965514', 'type': '餐饮服务;中餐厅;特色/地方风味餐厅'}, {'id': 'B03018IJ96', 'direction': '西南', 'businessarea': [], 'address': '常平镇霞坑村', 'poiweight': '0.146305', 'name': '霞晖花园·杰座', 'location': '114.026348,22.966865', 'distance': '289.62', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0FFG9N8WV', 'direction': '东', 'businessarea': [], 'address': '元霞路与塘霞路交叉口东北50米', 'poiweight': '0.197603', 'name': '柏医师诊所', 'location': '114.029991,22.968571', 'distance': '132.543', 'tel': [], 'type': '医疗保健服务;诊所;诊所'}, {'id': 'B0FFLQFDAS', 'direction': '东', 'businessarea': [], 'address': [], 'poiweight': '0.243574', 'name': '福山苑', 'location': '114.030349,22.967634', 'distance': '177.849', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0FFH6OLKY', 'direction': '北', 'businessarea': [], 'address': '霞坑南门路与霞坑竹园路交叉口东100米', 'poiweight': '0.310523', 'name': '霞坑小学', 'location': '114.028637,22.970134', 'distance': '209.996', 'tel': [], 'type': '科教文化服务;学校;小学'}, {'id': 'B0FFH6U4HT', 'direction': '南', 'businessarea': [], 'address': '塘霞路西100米', 'poiweight': '0.199821', 'name': '长江电子科技有限公司', 'location': '114.029107,22.966213', 'distance': '229.306', 'tel': [], 'type': '公司企业;公司;机械电子'}, {'id': 'B0FFGJ0UMR', 'direction': '东南', 'businessarea': [], 'address': '常平镇霞坑村塘霞二路5号', 'poiweight': '0.179732', 'name': '祥胜卡板厂', 'location': '114.030847,22.966853', 'distance': '265.288', 'tel': '0769-83393653', 'type': '公司企业;工厂;工厂'}, {'id': 'B0FFFS7Q1M', 'direction': '南', 'businessarea': [], 'address': '常东路159号', 'poiweight': '0.241599', 'name': '长城聚怡工业园', 'location': '114.02881,22.96454', 'distance': '412.389', 'tel': [], 'type': '商务住宅;产业园区;产业园区'}, {'id': 'B0FFG9N9HA', 'direction': '东南', 'businessarea': [], 'address': '塘霞路78号', 'poiweight': '0.207243', 'name': '步步高公寓(塘霞路)', 'location': '114.030435,22.965558', 'distance': '345.568', 'tel': '13713166079', 'type': '住宿服务;旅馆招待所;旅馆招待所|商务住宅;商务住宅相关;商务住宅相关'}, {'id': 'B03018KBRC', 'direction': '南', 'businessarea': [], 'address': '常平镇常东路土塘段21号', 'poiweight': '0.48', 'name': '金铂特假日酒店', 'location': '114.0275,22.964114', 'distance': '477.065', 'tel': '0769-81098888', 'type': '住宿服务;宾馆酒店;四星级宾馆'}, {'id': 'B0FFHIWUCA', 'direction': '东北', 'businessarea': [], 'address': '元霞路', 'poiweight': '0.168622', 'name': '东莞市广兴粮油有限公司', 'location': '114.030568,22.970870', 'distance': '346.187', 'tel': '0769-83812298;13712781898', 'type': '公司企业;公司;公司'}, {'id': 'B030104NYC', 'direction': '西南', 'businessarea': [], 'address': '常平镇霞坑村', 'poiweight': '0.376457', 'name': '霞晖花园', 'location': '114.026193,22.966051', 'distance': '357.701', 'tel': '0769-83335061', 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03018NTH2', 'direction': '西', 'businessarea': [], 'address': '常平镇霞坑村工业区一路', 'poiweight': '0.18461', 'name': '东莞市丽途电子科技有限公司', 'location': '114.024724,22.967417', 'distance': '421.945', 'tel': '0769-83811860', 'type': '公司企业;公司;机械电子'}, {'id': 'B03018IG8O', 'direction': '西南', 'businessarea': [], 'address': '常平镇常东路土塘路段18号', 'poiweight': '0.109075', 'name': '东莞银行(常平金华支行)', 'location': '114.026391,22.963475', 'distance': '582.918', 'tel': '0769-81088192;0769-83911506;4001196228', 'type': '金融保险服务;银行;银行'}, {'id': 'B03017U244', 'direction': '南', 'businessarea': [], 'address': '常东公路', 'poiweight': '0.371226', 'name': '土塘派出所', 'location': '114.030185,22.963383', 'distance': '560.719', 'tel': '0769-83390999;0769-83390998', 'type': '政府机构及社会团体;公检法机构;公安警察'}, {'id': 'B030103MBV', 'direction': '西', 'businessarea': [], 'address': '霞坑工业一路与霞坑工业三路交叉口西北100米', 'poiweight': '0.193917', 'name': '建福实业有限公司(霞坑工业一路)', 'location': '114.024319,22.968399', 'distance': '453.474', 'tel': [], 'type': '公司企业;公司;机械电子'}, {'id': 'B0FFG35Q72', 'direction': '西南', 'businessarea': [], 'address': '元霞路30号(霞坑市场旁边)(近霞坑工业二路)', 'poiweight': '0.229692', 'name': '迎宾住宿(东莞元霞路店)', 'location': '114.024867,22.965917', 'distance': '474.181', 'tel': '0769-83903691;18029000510', 'type': '住宿服务;住宿服务相关;住宿服务相关'}, {'id': 'B0FFKKFKPS', 'direction': '西', 'businessarea': [], 'address': '地堂路与霞坑工业三路交叉口西北150米', 'poiweight': '0.179374', 'name': '东莞汇成服装有限公司', 'location': '114.025306,22.969183', 'distance': '367.117', 'tel': [], 'type': '公司企业;公司;公司'}, {'id': 'B03017V148', 'direction': '西南', 'businessarea': [], 'address': '常平镇常东路土塘路口', 'poiweight': '0.578573', 'name': '翔盈国际酒店', 'location': '114.025327,22.96348', 'distance': '635.29', 'tel': '0769-88799999;0769-38879999', 'type': '住宿服务;宾馆酒店;四星级宾馆'}, {'id': 'B03018PLX8', 'direction': '西', 'businessarea': [], 'address': '常平镇霞坑工业一路', 'poiweight': '0.272011', 'name': '霞坑工业区', 'location': '114.023645,22.970307', 'distance': '570.144', 'tel': [], 'type': '商务住宅;产业园区;产业园区'}, {'id': 'B030102XPH', 'direction': '东北', 'businessarea': [], 'address': '常平镇元霞路中国邮政东南50米', 'poiweight': '0.177973', 'name': '东迅餐厅', 'location': '114.032407,22.970854', 'distance': '473.848', 'tel': '0769-83985191', 'type': '餐饮服务;中餐厅;中餐厅'}, {'id': 'B0FFHH8U3W', 'direction': '东北', 'businessarea': [], 'address': '元霞路45号附近', 'poiweight': '0.175127', 'name': '育才辅导班', 'location': '114.030964,22.971812', 'distance': '456.8', 'tel': [], 'type': '科教文化服务;培训机构;培训机构'}, {'id': 'B030105XV2', 'direction': '西南', 'businessarea': [], 'address': '常平镇常平镇土塘村', 'poiweight': '0.528908', 'name': '东莞农村商业银行(土塘支行)', 'location': '114.024753,22.963675', 'distance': '652.417', 'tel': '0769-83392097', 'type': '金融保险服务;银行;农村商业银行'}, {'id': 'B03018QYY7', 'direction': '南', 'businessarea': [], 'address': '常平镇土塘派出所正对面', 'poiweight': '0.15907', 'name': '广仁驾校报名点(土塘服务店)', 'location': '114.030224,22.962676', 'distance': '637.834', 'tel': '0769-82828809', 'type': '科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所'}, {'id': 'B0FFK3N381', 'direction': '西北', 'businessarea': [], 'address': '隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄', 'poiweight': '0.324406', 'name': '亲亲动物园', 'location': '114.027054,22.972157', 'distance': '467.883', 'tel': [], 'type': '风景名胜;公园广场;公园广场'}, {'id': 'B03018QF8Z', 'direction': '南', 'businessarea': [], 'address': '常东公路', 'poiweight': '0.258184', 'name': '土塘派出所办证大厅', 'location': '114.030309,22.963147', 'distance': '589.41', 'tel': [], 'type': '政府机构及社会团体;公检法机构;公安警察'}, {'id': 'B0FFFS8URK', 'direction': '南', 'businessarea': [], 'address': '常东路与禾头岭路交叉口东南50米', 'poiweight': '0.217038', 'name': '旭日楼', 'location': '114.026979,22.963319', 'distance': '577.18', 'tel': [], 'type': '商务住宅;楼宇;商住两用楼宇'}]}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.aois</th>\n",
       "      <th>regeocode.pois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'id': '0769F50F0130017926', 'location': '114...</td>\n",
       "      <td>[{'second_name': '元霞路', 'first_id': '0769F50F0...</td>\n",
       "      <td>广东省东莞市常平镇霞坑村</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>广东省</td>\n",
       "      <td>441900</td>\n",
       "      <td>[]</td>\n",
       "      <td>...</td>\n",
       "      <td>中国</td>\n",
       "      <td>常平镇</td>\n",
       "      <td>[[]]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0769</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': 'B03017W3YP', 'direction': '东北', 'busi...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                                    regeocode.roads  \\\n",
       "0      1   OK    10000  [{'id': '0769F50F0130017926', 'location': '114...   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'second_name': '元霞路', 'first_id': '0769F50F0...   \n",
       "\n",
       "  regeocode.formatted_address regeocode.addressComponent.city  \\\n",
       "0                广东省东莞市常平镇霞坑村                             东莞市   \n",
       "\n",
       "  regeocode.addressComponent.province regeocode.addressComponent.adcode  \\\n",
       "0                                 广东省                            441900   \n",
       "\n",
       "  regeocode.addressComponent.district  ... regeocode.addressComponent.country  \\\n",
       "0                                  []  ...                                 中国   \n",
       "\n",
       "  regeocode.addressComponent.township  \\\n",
       "0                                 常平镇   \n",
       "\n",
       "  regeocode.addressComponent.businessAreas  \\\n",
       "0                                     [[]]   \n",
       "\n",
       "  regeocode.addressComponent.building.name  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.building.type  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.name  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.type  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.citycode regeocode.aois  \\\n",
       "0                                0769             []   \n",
       "\n",
       "                                      regeocode.pois  \n",
       "0  [{'id': 'B03017W3YP', 'direction': '东北', 'busi...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-2 Extra 全部逆地理编码分析\n",
    "家逆地理编码_all = regeocode(家地理编码,extensions=\"all\")\n",
    "print(家逆地理编码_all)\n",
    "df_家逆地理编码_all = pd.json_normalize(家逆地理编码_all)\n",
    "display(df_家逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0769F50F0130017926</td>\n",
       "      <td>114.029,22.9681</td>\n",
       "      <td>东北</td>\n",
       "      <td>元霞路</td>\n",
       "      <td>24.4952</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0769F50F0130017922</td>\n",
       "      <td>114.028,22.9683</td>\n",
       "      <td>东</td>\n",
       "      <td>霞坑南门路</td>\n",
       "      <td>42.9154</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0769F50F013001603387</td>\n",
       "      <td>114.03,22.9683</td>\n",
       "      <td>西</td>\n",
       "      <td>塘霞路</td>\n",
       "      <td>97.0636</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     id         location direction   name distance\n",
       "0    0769F50F0130017926  114.029,22.9681        东北    元霞路  24.4952\n",
       "1    0769F50F0130017922  114.028,22.9683         东  霞坑南门路  42.9154\n",
       "2  0769F50F013001603387   114.03,22.9683         西    塘霞路  97.0636"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>second_name</th>\n",
       "      <th>first_id</th>\n",
       "      <th>second_id</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>first_name</th>\n",
       "      <th>direction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>元霞路</td>\n",
       "      <td>0769F50F0130017922</td>\n",
       "      <td>0769F50F0130017926</td>\n",
       "      <td>114.0283744,22.96800083</td>\n",
       "      <td>46.8523</td>\n",
       "      <td>霞坑南门路</td>\n",
       "      <td>东北</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  second_name            first_id           second_id  \\\n",
       "0         元霞路  0769F50F0130017922  0769F50F0130017926   \n",
       "\n",
       "                  location distance first_name direction  \n",
       "0  114.0283744,22.96800083  46.8523      霞坑南门路        东北  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B03017W3YP</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>元霞路附近</td>\n",
       "      <td>0.135478</td>\n",
       "      <td>霞坑村村委会</td>\n",
       "      <td>114.028837,22.968331</td>\n",
       "      <td>13.1877</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFFSECQS</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.171786</td>\n",
       "      <td>铭记驾校报名处</td>\n",
       "      <td>114.027831,22.967725</td>\n",
       "      <td>110.173</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B03017U02Z</td>\n",
       "      <td>Center</td>\n",
       "      <td>[]</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>0.42738</td>\n",
       "      <td>霞坑村</td>\n",
       "      <td>114.028745,22.968248</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;普通地名;村庄级地名</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFG8ZF92</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇元霞路霞坑村委对面新宅区A栋</td>\n",
       "      <td>0.176301</td>\n",
       "      <td>沙县小吃(锦庭公寓东北)</td>\n",
       "      <td>114.029460,22.967087</td>\n",
       "      <td>148.424</td>\n",
       "      <td>13616965514</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B03018IJ96</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇霞坑村</td>\n",
       "      <td>0.146305</td>\n",
       "      <td>霞晖花园·杰座</td>\n",
       "      <td>114.026348,22.966865</td>\n",
       "      <td>289.62</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFG9N8WV</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>元霞路与塘霞路交叉口东北50米</td>\n",
       "      <td>0.197603</td>\n",
       "      <td>柏医师诊所</td>\n",
       "      <td>114.029991,22.968571</td>\n",
       "      <td>132.543</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;诊所;诊所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFLQFDAS</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.243574</td>\n",
       "      <td>福山苑</td>\n",
       "      <td>114.030349,22.967634</td>\n",
       "      <td>177.849</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFH6OLKY</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>霞坑南门路与霞坑竹园路交叉口东100米</td>\n",
       "      <td>0.310523</td>\n",
       "      <td>霞坑小学</td>\n",
       "      <td>114.028637,22.970134</td>\n",
       "      <td>209.996</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;小学</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFH6U4HT</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘霞路西100米</td>\n",
       "      <td>0.199821</td>\n",
       "      <td>长江电子科技有限公司</td>\n",
       "      <td>114.029107,22.966213</td>\n",
       "      <td>229.306</td>\n",
       "      <td>[]</td>\n",
       "      <td>公司企业;公司;机械电子</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFGJ0UMR</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇霞坑村塘霞二路5号</td>\n",
       "      <td>0.179732</td>\n",
       "      <td>祥胜卡板厂</td>\n",
       "      <td>114.030847,22.966853</td>\n",
       "      <td>265.288</td>\n",
       "      <td>0769-83393653</td>\n",
       "      <td>公司企业;工厂;工厂</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFFS7Q1M</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常东路159号</td>\n",
       "      <td>0.241599</td>\n",
       "      <td>长城聚怡工业园</td>\n",
       "      <td>114.02881,22.96454</td>\n",
       "      <td>412.389</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;产业园区;产业园区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFG9N9HA</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘霞路78号</td>\n",
       "      <td>0.207243</td>\n",
       "      <td>步步高公寓(塘霞路)</td>\n",
       "      <td>114.030435,22.965558</td>\n",
       "      <td>345.568</td>\n",
       "      <td>13713166079</td>\n",
       "      <td>住宿服务;旅馆招待所;旅馆招待所|商务住宅;商务住宅相关;商务住宅相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B03018KBRC</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇常东路土塘段21号</td>\n",
       "      <td>0.48</td>\n",
       "      <td>金铂特假日酒店</td>\n",
       "      <td>114.0275,22.964114</td>\n",
       "      <td>477.065</td>\n",
       "      <td>0769-81098888</td>\n",
       "      <td>住宿服务;宾馆酒店;四星级宾馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFHIWUCA</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>元霞路</td>\n",
       "      <td>0.168622</td>\n",
       "      <td>东莞市广兴粮油有限公司</td>\n",
       "      <td>114.030568,22.970870</td>\n",
       "      <td>346.187</td>\n",
       "      <td>0769-83812298;13712781898</td>\n",
       "      <td>公司企业;公司;公司</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B030104NYC</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇霞坑村</td>\n",
       "      <td>0.376457</td>\n",
       "      <td>霞晖花园</td>\n",
       "      <td>114.026193,22.966051</td>\n",
       "      <td>357.701</td>\n",
       "      <td>0769-83335061</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B03018NTH2</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇霞坑村工业区一路</td>\n",
       "      <td>0.18461</td>\n",
       "      <td>东莞市丽途电子科技有限公司</td>\n",
       "      <td>114.024724,22.967417</td>\n",
       "      <td>421.945</td>\n",
       "      <td>0769-83811860</td>\n",
       "      <td>公司企业;公司;机械电子</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B03018IG8O</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇常东路土塘路段18号</td>\n",
       "      <td>0.109075</td>\n",
       "      <td>东莞银行(常平金华支行)</td>\n",
       "      <td>114.026391,22.963475</td>\n",
       "      <td>582.918</td>\n",
       "      <td>0769-81088192;0769-83911506;4001196228</td>\n",
       "      <td>金融保险服务;银行;银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B03017U244</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常东公路</td>\n",
       "      <td>0.371226</td>\n",
       "      <td>土塘派出所</td>\n",
       "      <td>114.030185,22.963383</td>\n",
       "      <td>560.719</td>\n",
       "      <td>0769-83390999;0769-83390998</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B030103MBV</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>霞坑工业一路与霞坑工业三路交叉口西北100米</td>\n",
       "      <td>0.193917</td>\n",
       "      <td>建福实业有限公司(霞坑工业一路)</td>\n",
       "      <td>114.024319,22.968399</td>\n",
       "      <td>453.474</td>\n",
       "      <td>[]</td>\n",
       "      <td>公司企业;公司;机械电子</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFG35Q72</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>元霞路30号(霞坑市场旁边)(近霞坑工业二路)</td>\n",
       "      <td>0.229692</td>\n",
       "      <td>迎宾住宿(东莞元霞路店)</td>\n",
       "      <td>114.024867,22.965917</td>\n",
       "      <td>474.181</td>\n",
       "      <td>0769-83903691;18029000510</td>\n",
       "      <td>住宿服务;住宿服务相关;住宿服务相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFKKFKPS</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>地堂路与霞坑工业三路交叉口西北150米</td>\n",
       "      <td>0.179374</td>\n",
       "      <td>东莞汇成服装有限公司</td>\n",
       "      <td>114.025306,22.969183</td>\n",
       "      <td>367.117</td>\n",
       "      <td>[]</td>\n",
       "      <td>公司企业;公司;公司</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B03017V148</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇常东路土塘路口</td>\n",
       "      <td>0.578573</td>\n",
       "      <td>翔盈国际酒店</td>\n",
       "      <td>114.025327,22.96348</td>\n",
       "      <td>635.29</td>\n",
       "      <td>0769-88799999;0769-38879999</td>\n",
       "      <td>住宿服务;宾馆酒店;四星级宾馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B03018PLX8</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇霞坑工业一路</td>\n",
       "      <td>0.272011</td>\n",
       "      <td>霞坑工业区</td>\n",
       "      <td>114.023645,22.970307</td>\n",
       "      <td>570.144</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;产业园区;产业园区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B030102XPH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇元霞路中国邮政东南50米</td>\n",
       "      <td>0.177973</td>\n",
       "      <td>东迅餐厅</td>\n",
       "      <td>114.032407,22.970854</td>\n",
       "      <td>473.848</td>\n",
       "      <td>0769-83985191</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B0FFHH8U3W</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>元霞路45号附近</td>\n",
       "      <td>0.175127</td>\n",
       "      <td>育才辅导班</td>\n",
       "      <td>114.030964,22.971812</td>\n",
       "      <td>456.8</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B030105XV2</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇常平镇土塘村</td>\n",
       "      <td>0.528908</td>\n",
       "      <td>东莞农村商业银行(土塘支行)</td>\n",
       "      <td>114.024753,22.963675</td>\n",
       "      <td>652.417</td>\n",
       "      <td>0769-83392097</td>\n",
       "      <td>金融保险服务;银行;农村商业银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B03018QYY7</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇土塘派出所正对面</td>\n",
       "      <td>0.15907</td>\n",
       "      <td>广仁驾校报名点(土塘服务店)</td>\n",
       "      <td>114.030224,22.962676</td>\n",
       "      <td>637.834</td>\n",
       "      <td>0769-82828809</td>\n",
       "      <td>科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B0FFK3N381</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄</td>\n",
       "      <td>0.324406</td>\n",
       "      <td>亲亲动物园</td>\n",
       "      <td>114.027054,22.972157</td>\n",
       "      <td>467.883</td>\n",
       "      <td>[]</td>\n",
       "      <td>风景名胜;公园广场;公园广场</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B03018QF8Z</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常东公路</td>\n",
       "      <td>0.258184</td>\n",
       "      <td>土塘派出所办证大厅</td>\n",
       "      <td>114.030309,22.963147</td>\n",
       "      <td>589.41</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;公检法机构;公安警察</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B0FFFS8URK</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>常东路与禾头岭路交叉口东南50米</td>\n",
       "      <td>0.217038</td>\n",
       "      <td>旭日楼</td>\n",
       "      <td>114.026979,22.963319</td>\n",
       "      <td>577.18</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;楼宇;商住两用楼宇</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea                  address poiweight  \\\n",
       "0   B03017W3YP        东北           []                    元霞路附近  0.135478   \n",
       "1   B0FFFSECQS        西南           []                       []  0.171786   \n",
       "2   B03017U02Z    Center           []                      东莞市   0.42738   \n",
       "3   B0FFG8ZF92        东南           []        常平镇元霞路霞坑村委对面新宅区A栋  0.176301   \n",
       "4   B03018IJ96        西南           []                   常平镇霞坑村  0.146305   \n",
       "5   B0FFG9N8WV         东           []          元霞路与塘霞路交叉口东北50米  0.197603   \n",
       "6   B0FFLQFDAS         东           []                       []  0.243574   \n",
       "7   B0FFH6OLKY         北           []      霞坑南门路与霞坑竹园路交叉口东100米  0.310523   \n",
       "8   B0FFH6U4HT         南           []                 塘霞路西100米  0.199821   \n",
       "9   B0FFGJ0UMR        东南           []             常平镇霞坑村塘霞二路5号  0.179732   \n",
       "10  B0FFFS7Q1M         南           []                  常东路159号  0.241599   \n",
       "11  B0FFG9N9HA        东南           []                   塘霞路78号  0.207243   \n",
       "12  B03018KBRC         南           []             常平镇常东路土塘段21号      0.48   \n",
       "13  B0FFHIWUCA        东北           []                      元霞路  0.168622   \n",
       "14  B030104NYC        西南           []                   常平镇霞坑村  0.376457   \n",
       "15  B03018NTH2         西           []              常平镇霞坑村工业区一路   0.18461   \n",
       "16  B03018IG8O        西南           []            常平镇常东路土塘路段18号  0.109075   \n",
       "17  B03017U244         南           []                     常东公路  0.371226   \n",
       "18  B030103MBV         西           []   霞坑工业一路与霞坑工业三路交叉口西北100米  0.193917   \n",
       "19  B0FFG35Q72        西南           []  元霞路30号(霞坑市场旁边)(近霞坑工业二路)  0.229692   \n",
       "20  B0FFKKFKPS         西           []      地堂路与霞坑工业三路交叉口西北150米  0.179374   \n",
       "21  B03017V148        西南           []               常平镇常东路土塘路口  0.578573   \n",
       "22  B03018PLX8         西           []                常平镇霞坑工业一路  0.272011   \n",
       "23  B030102XPH        东北           []          常平镇元霞路中国邮政东南50米  0.177973   \n",
       "24  B0FFHH8U3W        东北           []                 元霞路45号附近  0.175127   \n",
       "25  B030105XV2        西南           []                常平镇常平镇土塘村  0.528908   \n",
       "26  B03018QYY7         南           []              常平镇土塘派出所正对面   0.15907   \n",
       "27  B0FFK3N381        西北           []    隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄  0.324406   \n",
       "28  B03018QF8Z         南           []                     常东公路  0.258184   \n",
       "29  B0FFFS8URK         南           []         常东路与禾头岭路交叉口东南50米  0.217038   \n",
       "\n",
       "                name              location distance  \\\n",
       "0             霞坑村村委会  114.028837,22.968331  13.1877   \n",
       "1            铭记驾校报名处  114.027831,22.967725  110.173   \n",
       "2                霞坑村  114.028745,22.968248        0   \n",
       "3       沙县小吃(锦庭公寓东北)  114.029460,22.967087  148.424   \n",
       "4            霞晖花园·杰座  114.026348,22.966865   289.62   \n",
       "5              柏医师诊所  114.029991,22.968571  132.543   \n",
       "6                福山苑  114.030349,22.967634  177.849   \n",
       "7               霞坑小学  114.028637,22.970134  209.996   \n",
       "8         长江电子科技有限公司  114.029107,22.966213  229.306   \n",
       "9              祥胜卡板厂  114.030847,22.966853  265.288   \n",
       "10           长城聚怡工业园    114.02881,22.96454  412.389   \n",
       "11        步步高公寓(塘霞路)  114.030435,22.965558  345.568   \n",
       "12           金铂特假日酒店    114.0275,22.964114  477.065   \n",
       "13       东莞市广兴粮油有限公司  114.030568,22.970870  346.187   \n",
       "14              霞晖花园  114.026193,22.966051  357.701   \n",
       "15     东莞市丽途电子科技有限公司  114.024724,22.967417  421.945   \n",
       "16      东莞银行(常平金华支行)  114.026391,22.963475  582.918   \n",
       "17             土塘派出所  114.030185,22.963383  560.719   \n",
       "18  建福实业有限公司(霞坑工业一路)  114.024319,22.968399  453.474   \n",
       "19      迎宾住宿(东莞元霞路店)  114.024867,22.965917  474.181   \n",
       "20        东莞汇成服装有限公司  114.025306,22.969183  367.117   \n",
       "21            翔盈国际酒店   114.025327,22.96348   635.29   \n",
       "22             霞坑工业区  114.023645,22.970307  570.144   \n",
       "23              东迅餐厅  114.032407,22.970854  473.848   \n",
       "24             育才辅导班  114.030964,22.971812    456.8   \n",
       "25    东莞农村商业银行(土塘支行)  114.024753,22.963675  652.417   \n",
       "26    广仁驾校报名点(土塘服务店)  114.030224,22.962676  637.834   \n",
       "27             亲亲动物园  114.027054,22.972157  467.883   \n",
       "28         土塘派出所办证大厅  114.030309,22.963147   589.41   \n",
       "29               旭日楼  114.026979,22.963319   577.18   \n",
       "\n",
       "                                       tel  \\\n",
       "0                                       []   \n",
       "1                                       []   \n",
       "2                                       []   \n",
       "3                              13616965514   \n",
       "4                                       []   \n",
       "5                                       []   \n",
       "6                                       []   \n",
       "7                                       []   \n",
       "8                                       []   \n",
       "9                            0769-83393653   \n",
       "10                                      []   \n",
       "11                             13713166079   \n",
       "12                           0769-81098888   \n",
       "13               0769-83812298;13712781898   \n",
       "14                           0769-83335061   \n",
       "15                           0769-83811860   \n",
       "16  0769-81088192;0769-83911506;4001196228   \n",
       "17             0769-83390999;0769-83390998   \n",
       "18                                      []   \n",
       "19               0769-83903691;18029000510   \n",
       "20                                      []   \n",
       "21             0769-88799999;0769-38879999   \n",
       "22                                      []   \n",
       "23                           0769-83985191   \n",
       "24                                      []   \n",
       "25                           0769-83392097   \n",
       "26                           0769-82828809   \n",
       "27                                      []   \n",
       "28                                      []   \n",
       "29                                      []   \n",
       "\n",
       "                                   type  \n",
       "0           政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "1       科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所  \n",
       "2                     地名地址信息;普通地名;村庄级地名  \n",
       "3                    餐饮服务;中餐厅;特色/地方风味餐厅  \n",
       "4                         商务住宅;住宅区;住宅小区  \n",
       "5                          医疗保健服务;诊所;诊所  \n",
       "6                         商务住宅;住宅区;住宅小区  \n",
       "7                          科教文化服务;学校;小学  \n",
       "8                          公司企业;公司;机械电子  \n",
       "9                            公司企业;工厂;工厂  \n",
       "10                       商务住宅;产业园区;产业园区  \n",
       "11  住宿服务;旅馆招待所;旅馆招待所|商务住宅;商务住宅相关;商务住宅相关  \n",
       "12                      住宿服务;宾馆酒店;四星级宾馆  \n",
       "13                           公司企业;公司;公司  \n",
       "14                        商务住宅;住宅区;住宅小区  \n",
       "15                         公司企业;公司;机械电子  \n",
       "16                         金融保险服务;银行;银行  \n",
       "17                 政府机构及社会团体;公检法机构;公安警察  \n",
       "18                         公司企业;公司;机械电子  \n",
       "19                   住宿服务;住宿服务相关;住宿服务相关  \n",
       "20                           公司企业;公司;公司  \n",
       "21                      住宿服务;宾馆酒店;四星级宾馆  \n",
       "22                       商务住宅;产业园区;产业园区  \n",
       "23                         餐饮服务;中餐厅;中餐厅  \n",
       "24                     科教文化服务;培训机构;培训机构  \n",
       "25                     金融保险服务;银行;农村商业银行  \n",
       "26      科教文化服务;驾校;驾校|生活服务;生活服务场所;生活服务场所  \n",
       "27                       风景名胜;公园广场;公园广场  \n",
       "28                 政府机构及社会团体;公检法机构;公安警察  \n",
       "29                       商务住宅;楼宇;商住两用楼宇  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# A-3 分析细节\n",
    "roads = pd.json_normalize(家逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(家逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(家逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(家逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 路径规划  \n",
    "思考：通过规划路线，得出仿人式路线，能够规划出下一步"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "# B-1 准备base url、params、response.json（） \n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)家_location: 114.028745,22.968248 (终点)隐贤山庄_location: 114.027924,22.976323\n"
     ]
    }
   ],
   "source": [
    "# B-2 准备walking 参数\n",
    "隐贤山庄 = geocode('广东省东莞市常平镇隐贤山庄')\n",
    "隐贤山庄_location = 隐贤山庄['geocodes'][0]['location']\n",
    "家_location = 家['geocodes'][0]['location']\n",
    "print(\"(起点)家_location:\",家_location,\"(终点)隐贤山庄_location:\",隐贤山庄_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿元霞路向西步行44米右转</td>\n",
       "      <td>西</td>\n",
       "      <td>元霞路</td>\n",
       "      <td>44</td>\n",
       "      <td>35</td>\n",
       "      <td>114.028776,22.968155;114.028589,22.968103;114....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿霞坑南门路向北步行257米直行</td>\n",
       "      <td>北</td>\n",
       "      <td>霞坑南门路</td>\n",
       "      <td>257</td>\n",
       "      <td>206</td>\n",
       "      <td>114.028364,22.968025;114.028056,22.969175;114....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿霞坑竹园路向北步行436米向右前方行走</td>\n",
       "      <td>北</td>\n",
       "      <td>霞坑竹园路</td>\n",
       "      <td>436</td>\n",
       "      <td>349</td>\n",
       "      <td>114.027747,22.970286;114.027778,22.970872;114....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿霞坑竹园路向东北步行201米左转</td>\n",
       "      <td>东北</td>\n",
       "      <td>霞坑竹园路</td>\n",
       "      <td>201</td>\n",
       "      <td>161</td>\n",
       "      <td>114.027196,22.974119;114.027335,22.975078;114....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿霞坑竹园路向西北步行58米到达目的地</td>\n",
       "      <td>西北</td>\n",
       "      <td>霞坑竹园路</td>\n",
       "      <td>58</td>\n",
       "      <td>46</td>\n",
       "      <td>114.027973,22.975677;114.027882,22.975838;114....</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            instruction orientation   road distance duration  \\\n",
       "0         沿元霞路向西步行44米右转           西    元霞路       44       35   \n",
       "1      沿霞坑南门路向北步行257米直行           北  霞坑南门路      257      206   \n",
       "2  沿霞坑竹园路向北步行436米向右前方行走           北  霞坑竹园路      436      349   \n",
       "3     沿霞坑竹园路向东北步行201米左转          东北  霞坑竹园路      201      161   \n",
       "4   沿霞坑竹园路向西北步行58米到达目的地          西北  霞坑竹园路       58       46   \n",
       "\n",
       "                                            polyline  action assistant_action  \\\n",
       "0  114.028776,22.968155;114.028589,22.968103;114....      右转               []   \n",
       "1  114.028364,22.968025;114.028056,22.969175;114....      直行               []   \n",
       "2  114.027747,22.970286;114.027778,22.970872;114....  向右前方行走               []   \n",
       "3  114.027196,22.974119;114.027335,22.975078;114....      左转               []   \n",
       "4  114.027973,22.975677;114.027882,22.975838;114....      []            到达目的地   \n",
       "\n",
       "  walk_type  \n",
       "0         0  \n",
       "1         0  \n",
       "2         0  \n",
       "3         0  \n",
       "4         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0           沿元霞路向西步行44米右转\n",
       "1        沿霞坑南门路向北步行257米直行\n",
       "2    沿霞坑竹园路向北步行436米向右前方行走\n",
       "3       沿霞坑竹园路向东北步行201米左转\n",
       "4     沿霞坑竹园路向西北步行58米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# B-3 路径规划\n",
    "家_隐贤山庄 = walking(家_location,隐贤山庄_location)\n",
    "df_步行路径规划 = pd.json_normalize(家_隐贤山庄[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"] #尝试修改参数为walk_type，结果返回全为0"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 公交路径规划  \n",
    "发现公交的路径规划和步行路径规划是有关联的，因为此代码下出来的公交规划是和步行规划同一条路。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)隐贤山庄_location: 114.027924,22.976323 (终点)翔盈国际酒店_location: 114.025333,22.963515\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>1</td>\n",
       "      <td>114.027924,22.976323</td>\n",
       "      <td>114.025333,22.963515</td>\n",
       "      <td>1538</td>\n",
       "      <td>8.0</td>\n",
       "      <td>[{'cost': '2.0', 'duration': '1961', 'nightfla...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     1  114.027924,22.976323  114.025333,22.963515   \n",
       "\n",
       "  route.distance route.taxi_cost  \\\n",
       "0           1538             8.0   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': '2.0', 'duration': '1961', 'nightfla...  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# C-1\n",
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "# C-2 准备walking 参数\n",
    "隐贤山庄 = geocode('广东省东莞市常平镇隐贤山庄')\n",
    "隐贤山庄_location = 隐贤山庄['geocodes'][0]['location']\n",
    "翔盈国际酒店 = geocode('广东省东莞市常平镇翔盈国际酒店')\n",
    "翔盈国际酒店_location = 翔盈国际酒店['geocodes'][0]['location']\n",
    "print(\"(起点)隐贤山庄_location:\",隐贤山庄_location,\"(终点)翔盈国际酒店_location:\",翔盈国际酒店_location)\n",
    "\n",
    "# C-3 公交路径规划\n",
    "隐贤山庄_翔盈国际酒店 = integrated(隐贤山庄_location,翔盈国际酒店_location,city='东莞',extensions='all')\n",
    "df_bus = pd.json_normalize(隐贤山庄_翔盈国际酒店)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2.0</td>\n",
       "      <td>1961</td>\n",
       "      <td>0</td>\n",
       "      <td>1190</td>\n",
       "      <td>2384</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '114.02763...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  2.0     1961         0             1190     2384      1   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '114.02763...  "
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "pd.json_normalize(隐贤山庄_翔盈国际酒店[\"route\"]['transits'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>114.027634,22.976093</td>\n",
       "      <td>114.030830,22.970839</td>\n",
       "      <td>1140</td>\n",
       "      <td>977</td>\n",
       "      <td>[{'instruction': '沿霞坑竹园路步行58米右转', 'road': '霞坑竹...</td>\n",
       "      <td>[{'departure_stop': {'name': '东讯货场', 'id': '44...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>114.025955,22.963793</td>\n",
       "      <td>114.025490,22.963919</td>\n",
       "      <td>50</td>\n",
       "      <td>42</td>\n",
       "      <td>[{'instruction': '沿常东路步行50米', 'road': '常东路', '...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi entrance exit        walking.origin   walking.destination  \\\n",
       "0   []       []   []  114.027634,22.976093  114.030830,22.970839   \n",
       "1   []       []   []  114.025955,22.963793  114.025490,22.963919   \n",
       "\n",
       "  walking.distance walking.duration  \\\n",
       "0             1140              977   \n",
       "1               50               42   \n",
       "\n",
       "                                       walking.steps  \\\n",
       "0  [{'instruction': '沿霞坑竹园路步行58米右转', 'road': '霞坑竹...   \n",
       "1  [{'instruction': '沿常东路步行50米', 'road': '常东路', '...   \n",
       "\n",
       "                                        bus.buslines railway.via_stops  \\\n",
       "0  [{'departure_stop': {'name': '东讯货场', 'id': '44...                []   \n",
       "1                                                 []                []   \n",
       "\n",
       "  railway.alters railway.spaces  \n",
       "0             []             []  \n",
       "1             []             []  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(隐贤山庄_翔盈国际酒店[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>728路(中心小学--东莞东站)</td>\n",
       "      <td>441900011414</td>\n",
       "      <td>普通公交线路</td>\n",
       "      <td>1194</td>\n",
       "      <td>941</td>\n",
       "      <td>114.030830,22.970833;114.030228,22.970287;114....</td>\n",
       "      <td>2</td>\n",
       "      <td>0640</td>\n",
       "      <td>2130</td>\n",
       "      <td>2</td>\n",
       "      <td>[{'name': '霞坑村委', 'id': '441900011414025', 'lo...</td>\n",
       "      <td>东讯货场</td>\n",
       "      <td>441900011414047</td>\n",
       "      <td>114.030830,22.970833</td>\n",
       "      <td>土塘村口</td>\n",
       "      <td>441900011414027</td>\n",
       "      <td>114.025864,22.963816</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               name            id    type distance duration  \\\n",
       "0  728路(中心小学--东莞东站)  441900011414  普通公交线路     1194      941   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  114.030830,22.970833;114.030228,22.970287;114....          2       0640   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0     2130       2  [{'name': '霞坑村委', 'id': '441900011414025', 'lo...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0                东讯货场   441900011414047    114.030830,22.970833   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0              土塘村口  441900011414027  114.025864,22.963816  "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_bus_基本信息 = pd.json_normalize(隐贤山庄_翔盈国际酒店[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_基本信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_728路公交车</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>霞坑村委</td>\n",
       "      <td>441900011414025</td>\n",
       "      <td>114.029045,22.968233</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>霞坑市场</td>\n",
       "      <td>441900011414026</td>\n",
       "      <td>114.025154,22.966476</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  _728路公交车               id              location\n",
       "0     霞坑村委  441900011414025  114.029045,22.968233\n",
       "1     霞坑市场  441900011414026  114.025154,22.966476"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "_728路公交车 = pd.json_normalize(隐贤山庄_翔盈国际酒店[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"_728路公交车\"})\n",
    "display(_728路公交车)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 行政区域查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0754</td>\n",
       "      <td>440500</td>\n",
       "      <td>汕头市</td>\n",
       "      <td>116.708463,23.37102</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0754', 'adcode': '440513', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0757</td>\n",
       "      <td>440600</td>\n",
       "      <td>佛山市</td>\n",
       "      <td>113.122717,23.028762</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0757', 'adcode': '440607', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0758</td>\n",
       "      <td>441200</td>\n",
       "      <td>肇庆市</td>\n",
       "      <td>112.472529,23.051546</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0758', 'adcode': '441224', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0752</td>\n",
       "      <td>441300</td>\n",
       "      <td>惠州市</td>\n",
       "      <td>114.412599,23.079404</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0752', 'adcode': '441322', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0755</td>\n",
       "      <td>440300</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>114.085947,22.547</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440306', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0756</td>\n",
       "      <td>440400</td>\n",
       "      <td>珠海市</td>\n",
       "      <td>113.553986,22.224979</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0756', 'adcode': '440404', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0759</td>\n",
       "      <td>440800</td>\n",
       "      <td>湛江市</td>\n",
       "      <td>110.364977,21.274898</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0759', 'adcode': '440881', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0750</td>\n",
       "      <td>440700</td>\n",
       "      <td>江门市</td>\n",
       "      <td>113.094942,22.590431</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0750', 'adcode': '440784', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0662</td>\n",
       "      <td>441700</td>\n",
       "      <td>阳江市</td>\n",
       "      <td>111.975107,21.859222</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0662', 'adcode': '441781', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0668</td>\n",
       "      <td>440900</td>\n",
       "      <td>茂名市</td>\n",
       "      <td>110.919229,21.659751</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0668', 'adcode': '440983', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0768</td>\n",
       "      <td>445100</td>\n",
       "      <td>潮州市</td>\n",
       "      <td>116.632301,23.661701</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0768', 'adcode': '445122', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0660</td>\n",
       "      <td>441500</td>\n",
       "      <td>汕尾市</td>\n",
       "      <td>115.364238,22.774485</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441523', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0767</td>\n",
       "      <td>442100</td>\n",
       "      <td>东沙群岛</td>\n",
       "      <td>116.887312,20.617512</td>\n",
       "      <td>city</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0766</td>\n",
       "      <td>445300</td>\n",
       "      <td>云浮市</td>\n",
       "      <td>112.044439,22.929801</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0766', 'adcode': '445322', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0762</td>\n",
       "      <td>441600</td>\n",
       "      <td>河源市</td>\n",
       "      <td>114.697802,23.746266</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0762', 'adcode': '441622', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0753</td>\n",
       "      <td>441400</td>\n",
       "      <td>梅州市</td>\n",
       "      <td>116.117582,24.299112</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0753', 'adcode': '441426', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>113.746262,23.046237</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0769', 'adcode': '441900', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0663</td>\n",
       "      <td>445200</td>\n",
       "      <td>揭阳市</td>\n",
       "      <td>116.355733,23.543778</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445222', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>020</td>\n",
       "      <td>440100</td>\n",
       "      <td>广州市</td>\n",
       "      <td>113.280637,23.125178</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '020', 'adcode': '440117', 'name...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0763</td>\n",
       "      <td>441800</td>\n",
       "      <td>清远市</td>\n",
       "      <td>113.051227,23.685022</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0763', 'adcode': '441882', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>0751</td>\n",
       "      <td>440200</td>\n",
       "      <td>韶关市</td>\n",
       "      <td>113.591544,24.801322</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0751', 'adcode': '440224', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0760</td>\n",
       "      <td>442000</td>\n",
       "      <td>中山市</td>\n",
       "      <td>113.382391,22.521113</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0760', 'adcode': '442000', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode  name                center level  \\\n",
       "0      0754  440500   汕头市   116.708463,23.37102  city   \n",
       "1      0757  440600   佛山市  113.122717,23.028762  city   \n",
       "2      0758  441200   肇庆市  112.472529,23.051546  city   \n",
       "3      0752  441300   惠州市  114.412599,23.079404  city   \n",
       "4      0755  440300   深圳市     114.085947,22.547  city   \n",
       "5      0756  440400   珠海市  113.553986,22.224979  city   \n",
       "6      0759  440800   湛江市  110.364977,21.274898  city   \n",
       "7      0750  440700   江门市  113.094942,22.590431  city   \n",
       "8      0662  441700   阳江市  111.975107,21.859222  city   \n",
       "9      0668  440900   茂名市  110.919229,21.659751  city   \n",
       "10     0768  445100   潮州市  116.632301,23.661701  city   \n",
       "11     0660  441500   汕尾市  115.364238,22.774485  city   \n",
       "12     0767  442100  东沙群岛  116.887312,20.617512  city   \n",
       "13     0766  445300   云浮市  112.044439,22.929801  city   \n",
       "14     0762  441600   河源市  114.697802,23.746266  city   \n",
       "15     0753  441400   梅州市  116.117582,24.299112  city   \n",
       "16     0769  441900   东莞市  113.746262,23.046237  city   \n",
       "17     0663  445200   揭阳市  116.355733,23.543778  city   \n",
       "18      020  440100   广州市  113.280637,23.125178  city   \n",
       "19     0763  441800   清远市  113.051227,23.685022  city   \n",
       "20     0751  440200   韶关市  113.591544,24.801322  city   \n",
       "21     0760  442000   中山市  113.382391,22.521113  city   \n",
       "\n",
       "                                            districts  \n",
       "0   [{'citycode': '0754', 'adcode': '440513', 'nam...  \n",
       "1   [{'citycode': '0757', 'adcode': '440607', 'nam...  \n",
       "2   [{'citycode': '0758', 'adcode': '441224', 'nam...  \n",
       "3   [{'citycode': '0752', 'adcode': '441322', 'nam...  \n",
       "4   [{'citycode': '0755', 'adcode': '440306', 'nam...  \n",
       "5   [{'citycode': '0756', 'adcode': '440404', 'nam...  \n",
       "6   [{'citycode': '0759', 'adcode': '440881', 'nam...  \n",
       "7   [{'citycode': '0750', 'adcode': '440784', 'nam...  \n",
       "8   [{'citycode': '0662', 'adcode': '441781', 'nam...  \n",
       "9   [{'citycode': '0668', 'adcode': '440983', 'nam...  \n",
       "10  [{'citycode': '0768', 'adcode': '445122', 'nam...  \n",
       "11  [{'citycode': '0660', 'adcode': '441523', 'nam...  \n",
       "12                                                 []  \n",
       "13  [{'citycode': '0766', 'adcode': '445322', 'nam...  \n",
       "14  [{'citycode': '0762', 'adcode': '441622', 'nam...  \n",
       "15  [{'citycode': '0753', 'adcode': '441426', 'nam...  \n",
       "16  [{'citycode': '0769', 'adcode': '441900', 'nam...  \n",
       "17  [{'citycode': '0663', 'adcode': '445222', 'nam...  \n",
       "18  [{'citycode': '020', 'adcode': '440117', 'name...  \n",
       "19  [{'citycode': '0763', 'adcode': '441882', 'nam...  \n",
       "20  [{'citycode': '0751', 'adcode': '440224', 'nam...  \n",
       "21  [{'citycode': '0760', 'adcode': '442000', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>莞城街道</td>\n",
       "      <td>113.743,23.0225</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>常平镇</td>\n",
       "      <td>114.036,23.0074</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>望牛墩镇</td>\n",
       "      <td>113.676,23.0683</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>大朗镇</td>\n",
       "      <td>113.939,22.8654</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>麻涌镇</td>\n",
       "      <td>113.562,22.9718</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>黄江镇</td>\n",
       "      <td>113.973,22.8121</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>桥头镇</td>\n",
       "      <td>114.065,23.0315</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东莞生态园</td>\n",
       "      <td>113.917,23.0806</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>凤岗镇</td>\n",
       "      <td>114.105,22.7308</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>樟木头镇</td>\n",
       "      <td>114.018,22.8704</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>松山湖管委会</td>\n",
       "      <td>113.875,22.869</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石龙镇</td>\n",
       "      <td>113.833,23.1123</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>寮步镇</td>\n",
       "      <td>113.888,22.9529</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>高埗镇</td>\n",
       "      <td>113.773,23.112</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>塘厦镇</td>\n",
       "      <td>114.05,22.7713</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>谢岗镇</td>\n",
       "      <td>114.128,22.9901</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>厚街镇</td>\n",
       "      <td>113.776,22.9097</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>虎门镇</td>\n",
       "      <td>113.797,22.8587</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>南城街道</td>\n",
       "      <td>113.737,23.0249</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>虎门港管委会</td>\n",
       "      <td>113.562,22.9718</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>横沥镇</td>\n",
       "      <td>114.006,23.0504</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>企石镇</td>\n",
       "      <td>113.99,23.0541</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东坑镇</td>\n",
       "      <td>113.918,22.995</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东城街道</td>\n",
       "      <td>113.757,23.0485</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石排镇</td>\n",
       "      <td>113.988,23.068</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>洪梅镇</td>\n",
       "      <td>113.607,23.0155</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>长安镇</td>\n",
       "      <td>113.77,22.8195</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>沙田镇</td>\n",
       "      <td>113.582,22.9426</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>道滘镇</td>\n",
       "      <td>113.692,23.004</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>大岭山镇</td>\n",
       "      <td>113.843,22.9534</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>清溪镇</td>\n",
       "      <td>114.11,22.862</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>茶山镇</td>\n",
       "      <td>113.839,23.0813</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>万江街道</td>\n",
       "      <td>113.709,23.0014</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>中堂镇</td>\n",
       "      <td>113.734,23.1164</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石碣镇</td>\n",
       "      <td>113.846,23.1024</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode    name           center   level districts\n",
       "0      0769  441900    莞城街道  113.743,23.0225  street        []\n",
       "1      0769  441900     常平镇  114.036,23.0074  street        []\n",
       "2      0769  441900    望牛墩镇  113.676,23.0683  street        []\n",
       "3      0769  441900     大朗镇  113.939,22.8654  street        []\n",
       "4      0769  441900     麻涌镇  113.562,22.9718  street        []\n",
       "5      0769  441900     黄江镇  113.973,22.8121  street        []\n",
       "6      0769  441900     桥头镇  114.065,23.0315  street        []\n",
       "7      0769  441900   东莞生态园  113.917,23.0806  street        []\n",
       "8      0769  441900     凤岗镇  114.105,22.7308  street        []\n",
       "9      0769  441900    樟木头镇  114.018,22.8704  street        []\n",
       "10     0769  441900  松山湖管委会   113.875,22.869  street        []\n",
       "11     0769  441900     石龙镇  113.833,23.1123  street        []\n",
       "12     0769  441900     寮步镇  113.888,22.9529  street        []\n",
       "13     0769  441900     高埗镇   113.773,23.112  street        []\n",
       "14     0769  441900     塘厦镇   114.05,22.7713  street        []\n",
       "15     0769  441900     谢岗镇  114.128,22.9901  street        []\n",
       "16     0769  441900     厚街镇  113.776,22.9097  street        []\n",
       "17     0769  441900     虎门镇  113.797,22.8587  street        []\n",
       "18     0769  441900    南城街道  113.737,23.0249  street        []\n",
       "19     0769  441900  虎门港管委会  113.562,22.9718  street        []\n",
       "20     0769  441900     横沥镇  114.006,23.0504  street        []\n",
       "21     0769  441900     企石镇   113.99,23.0541  street        []\n",
       "22     0769  441900     东坑镇   113.918,22.995  street        []\n",
       "23     0769  441900    东城街道  113.757,23.0485  street        []\n",
       "24     0769  441900     石排镇   113.988,23.068  street        []\n",
       "25     0769  441900     洪梅镇  113.607,23.0155  street        []\n",
       "26     0769  441900     长安镇   113.77,22.8195  street        []\n",
       "27     0769  441900     沙田镇  113.582,22.9426  street        []\n",
       "28     0769  441900     道滘镇   113.692,23.004  street        []\n",
       "29     0769  441900    大岭山镇  113.843,22.9534  street        []\n",
       "30     0769  441900     清溪镇    114.11,22.862  street        []\n",
       "31     0769  441900     茶山镇  113.839,23.0813  street        []\n",
       "32     0769  441900    万江街道  113.709,23.0014  street        []\n",
       "33     0769  441900     中堂镇  113.734,23.1164  street        []\n",
       "34     0769  441900     石碣镇  113.846,23.1024  street        []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# D-1 请注意行政区域级别划分参数\n",
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "行政区域 = district(keywords='广东',extensions='all',subdistrict=2)\n",
    "\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "\n",
    "df_行政区域_2级_东莞市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][16]['districts'])\n",
    "display(df_行政区域_1级,df_行政区域_2级_东莞市)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>莞城街道</td>\n",
       "      <td>113.743,23.0225</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>常平镇</td>\n",
       "      <td>114.036,23.0074</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>望牛墩镇</td>\n",
       "      <td>113.676,23.0683</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>大朗镇</td>\n",
       "      <td>113.939,22.8654</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>麻涌镇</td>\n",
       "      <td>113.562,22.9718</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>黄江镇</td>\n",
       "      <td>113.973,22.8121</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>桥头镇</td>\n",
       "      <td>114.065,23.0315</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东莞生态园</td>\n",
       "      <td>113.917,23.0806</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>凤岗镇</td>\n",
       "      <td>114.105,22.7308</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>樟木头镇</td>\n",
       "      <td>114.018,22.8704</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>松山湖管委会</td>\n",
       "      <td>113.875,22.869</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石龙镇</td>\n",
       "      <td>113.833,23.1123</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>寮步镇</td>\n",
       "      <td>113.888,22.9529</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>高埗镇</td>\n",
       "      <td>113.773,23.112</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>塘厦镇</td>\n",
       "      <td>114.05,22.7713</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>谢岗镇</td>\n",
       "      <td>114.128,22.9901</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>厚街镇</td>\n",
       "      <td>113.776,22.9097</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>虎门镇</td>\n",
       "      <td>113.797,22.8587</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>南城街道</td>\n",
       "      <td>113.737,23.0249</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>虎门港管委会</td>\n",
       "      <td>113.562,22.9718</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>横沥镇</td>\n",
       "      <td>114.006,23.0504</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>企石镇</td>\n",
       "      <td>113.99,23.0541</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东坑镇</td>\n",
       "      <td>113.918,22.995</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东城街道</td>\n",
       "      <td>113.757,23.0485</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石排镇</td>\n",
       "      <td>113.988,23.068</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>洪梅镇</td>\n",
       "      <td>113.607,23.0155</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>长安镇</td>\n",
       "      <td>113.77,22.8195</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>沙田镇</td>\n",
       "      <td>113.582,22.9426</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>道滘镇</td>\n",
       "      <td>113.692,23.004</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>大岭山镇</td>\n",
       "      <td>113.843,22.9534</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>清溪镇</td>\n",
       "      <td>114.11,22.862</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>茶山镇</td>\n",
       "      <td>113.839,23.0813</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>万江街道</td>\n",
       "      <td>113.709,23.0014</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>中堂镇</td>\n",
       "      <td>113.734,23.1164</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>石碣镇</td>\n",
       "      <td>113.846,23.1024</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode    name           center   level districts\n",
       "0      0769  441900    莞城街道  113.743,23.0225  street        []\n",
       "1      0769  441900     常平镇  114.036,23.0074  street        []\n",
       "2      0769  441900    望牛墩镇  113.676,23.0683  street        []\n",
       "3      0769  441900     大朗镇  113.939,22.8654  street        []\n",
       "4      0769  441900     麻涌镇  113.562,22.9718  street        []\n",
       "5      0769  441900     黄江镇  113.973,22.8121  street        []\n",
       "6      0769  441900     桥头镇  114.065,23.0315  street        []\n",
       "7      0769  441900   东莞生态园  113.917,23.0806  street        []\n",
       "8      0769  441900     凤岗镇  114.105,22.7308  street        []\n",
       "9      0769  441900    樟木头镇  114.018,22.8704  street        []\n",
       "10     0769  441900  松山湖管委会   113.875,22.869  street        []\n",
       "11     0769  441900     石龙镇  113.833,23.1123  street        []\n",
       "12     0769  441900     寮步镇  113.888,22.9529  street        []\n",
       "13     0769  441900     高埗镇   113.773,23.112  street        []\n",
       "14     0769  441900     塘厦镇   114.05,22.7713  street        []\n",
       "15     0769  441900     谢岗镇  114.128,22.9901  street        []\n",
       "16     0769  441900     厚街镇  113.776,22.9097  street        []\n",
       "17     0769  441900     虎门镇  113.797,22.8587  street        []\n",
       "18     0769  441900    南城街道  113.737,23.0249  street        []\n",
       "19     0769  441900  虎门港管委会  113.562,22.9718  street        []\n",
       "20     0769  441900     横沥镇  114.006,23.0504  street        []\n",
       "21     0769  441900     企石镇   113.99,23.0541  street        []\n",
       "22     0769  441900     东坑镇   113.918,22.995  street        []\n",
       "23     0769  441900    东城街道  113.757,23.0485  street        []\n",
       "24     0769  441900     石排镇   113.988,23.068  street        []\n",
       "25     0769  441900     洪梅镇  113.607,23.0155  street        []\n",
       "26     0769  441900     长安镇   113.77,22.8195  street        []\n",
       "27     0769  441900     沙田镇  113.582,22.9426  street        []\n",
       "28     0769  441900     道滘镇   113.692,23.004  street        []\n",
       "29     0769  441900    大岭山镇  113.843,22.9534  street        []\n",
       "30     0769  441900     清溪镇    114.11,22.862  street        []\n",
       "31     0769  441900     茶山镇  113.839,23.0813  street        []\n",
       "32     0769  441900    万江街道  113.709,23.0014  street        []\n",
       "33     0769  441900     中堂镇  113.734,23.1164  street        []\n",
       "34     0769  441900     石碣镇  113.846,23.1024  street        []"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_行政区域_2级_东莞市"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 搜索POI  \n",
    "思考：通过分析、过滤、排序、预测、界定范围和确定大数据的总量，提供了更多可能性\n",
    "### 关键字搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFFPW2PN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>万泰商业城</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>桥东路南一街178</td>\n",
       "      <td>114.119929,23.019675</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFG6AR6O</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉荣购物广场(银丰店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>南城区银丰路2号4楼</td>\n",
       "      <td>113.742204,23.019583</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.6</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B03017WJAO</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>万润百货</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>凤翔路88-96号</td>\n",
       "      <td>114.165635,22.731122</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B03018KS5U ', 'name': ' 万润百货(北门) ', ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFHH3FFJ</td>\n",
       "      <td>B030100DXS</td>\n",
       "      <td>201</td>\n",
       "      <td>百佳超市(文化广场店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;百佳超市|购物服务;商场;普通商场</td>\n",
       "      <td>060414|060102</td>\n",
       "      <td>[]</td>\n",
       "      <td>西正路文化广场天和百货B1层</td>\n",
       "      <td>113.750853,23.040675</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>B030100DXS</td>\n",
       "      <td>-1</td>\n",
       "      <td>B1</td>\n",
       "      <td>GD0008360200100048</td>\n",
       "      <td>4.4</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B03017UX3S</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉荣SPAR购物广场(福海店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>长安镇厦岗社区福海路福海广场</td>\n",
       "      <td>113.745488,22.795174</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.4</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFGFDNPS</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>家家欣商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市|购物服务;商场;商场</td>\n",
       "      <td>060400|060100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.70413,22.841643</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B03018I4RO</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>港源百货(温周路)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>温周路温塘南路290号</td>\n",
       "      <td>113.823005,23.041046</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGCXGSI ', 'name': ' 港源百货(西门) ', ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B030105I1E</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>惠群购物商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘厦镇石马光明街7号</td>\n",
       "      <td>114.111072,22.740005</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B030103VY8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>联和批发商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>大朗镇石厦村银丰西街</td>\n",
       "      <td>113.979848,22.921794</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B03017UK4G</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>大众时代广场(上涌路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>厚街镇三屯管理区</td>\n",
       "      <td>113.679794,22.960222</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFF31DTD ', 'name': ' 大众时代广场(北门) '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B030104IIA</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>天天虹商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇塘厦村</td>\n",
       "      <td>113.758025,23.120748</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B03018IERC</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>佳民城百货(天堂新街店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>凤岗镇天堂新街148</td>\n",
       "      <td>114.114004,22.735529</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFG8Q8UU</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>家家乐购物广场(纵队路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;购物中心|购物服务;超级市场;超市</td>\n",
       "      <td>060101|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>纵队路185号</td>\n",
       "      <td>113.820874,22.885636</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGJ3CEA ', 'name': ' 家家乐购物广场停车场 '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFINGAE9</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>惠客隆购物广场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘厦镇莆心湖大道38号(大利纸品厂对面)</td>\n",
       "      <td>114.063497,22.797171</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0301020T8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>鹏程购物商场(龙湖路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>大朗高英大道191号(近榕仔路)</td>\n",
       "      <td>113.925198,22.967899</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGJ3FE0 ', 'name': ' 鹏程购物商场(东南门) ...</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFIIWGUN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>福来佳购物广场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>福来佳购物广场步行街与良平路交叉口西100米</td>\n",
       "      <td>113.833261,23.009547</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHGLYFT ', 'name': ' 福来佳购物广场(东南门)...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B030101W1L</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉华购物商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇草墩村地塘尾工业区</td>\n",
       "      <td>113.751762,23.120437</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B030104DWB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>曙光百货商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>祥兴街109号</td>\n",
       "      <td>113.904738,22.983656</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B030104OZW</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>湘和商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>黄江镇黄京坑村早源路</td>\n",
       "      <td>113.982865,22.876324</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.2</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B03017WMVB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>文康百货</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇冼沙二上坊恒康商业街</td>\n",
       "      <td>113.757398,23.094296</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2.2</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype             name tag  \\\n",
       "0   B0FFFPW2PN          []        []            万泰商业城  []   \n",
       "1   B0FFG6AR6O          []        []      嘉荣购物广场(银丰店)  []   \n",
       "2   B03017WJAO          []        []             万润百货  []   \n",
       "3   B0FFHH3FFJ  B030100DXS       201      百佳超市(文化广场店)  []   \n",
       "4   B03017UX3S          []        []  嘉荣SPAR购物广场(福海店)  []   \n",
       "5   B0FFGFDNPS          []        []            家家欣商场  []   \n",
       "6   B03018I4RO          []        []        港源百货(温周路)  []   \n",
       "7   B030105I1E          []        []           惠群购物商场  []   \n",
       "8   B030103VY8          []        []           联和批发商场  []   \n",
       "9   B03017UK4G          []        []     大众时代广场(上涌路店)  []   \n",
       "10  B030104IIA          []        []            天天虹商场  []   \n",
       "11  B03018IERC          []        []     佳民城百货(天堂新街店)  []   \n",
       "12  B0FFG8Q8UU          []        []    家家乐购物广场(纵队路店)  []   \n",
       "13  B0FFINGAE9          []        []          惠客隆购物广场  []   \n",
       "14  B0301020T8          []        []     鹏程购物商场(龙湖路店)  []   \n",
       "15  B0FFIIWGUN          []        []          福来佳购物广场  []   \n",
       "16  B030101W1L          []        []           嘉华购物商场  []   \n",
       "17  B030104DWB          []        []           曙光百货商场  []   \n",
       "18  B030104OZW          []        []             湘和商场  []   \n",
       "19  B03017WMVB          []        []             文康百货  []   \n",
       "\n",
       "                           type       typecode biz_type  \\\n",
       "0     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "1     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "2     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "3   购物服务;超级市场;百佳超市|购物服务;商场;普通商场  060414|060102       []   \n",
       "4                  购物服务;超级市场;超市         060400       []   \n",
       "5       购物服务;超级市场;超市|购物服务;商场;商场  060400|060100       []   \n",
       "6     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "7                  购物服务;超级市场;超市         060400       []   \n",
       "8                  购物服务;超级市场;超市         060400       []   \n",
       "9     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "10    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "11    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "12    购物服务;商场;购物中心|购物服务;超级市场;超市  060101|060400       []   \n",
       "13    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "14                 购物服务;超级市场;超市         060400       []   \n",
       "15                 购物服务;超级市场;超市         060400       []   \n",
       "16    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "17                 购物服务;超级市场;超市         060400       []   \n",
       "18                 购物服务;超级市场;超市         060400       []   \n",
       "19                 购物服务;超级市场;超市         060400       []   \n",
       "\n",
       "                   address              location  ... discount_num event  \\\n",
       "0                桥东路南一街178  114.119929,23.019675  ...            0    []   \n",
       "1               南城区银丰路2号4楼  113.742204,23.019583  ...            0    []   \n",
       "2                凤翔路88-96号  114.165635,22.731122  ...            0    []   \n",
       "3           西正路文化广场天和百货B1层  113.750853,23.040675  ...            0    []   \n",
       "4           长安镇厦岗社区福海路福海广场  113.745488,22.795174  ...            0    []   \n",
       "5                       []   113.70413,22.841643  ...            0    []   \n",
       "6              温周路温塘南路290号  113.823005,23.041046  ...            0    []   \n",
       "7               塘厦镇石马光明街7号  114.111072,22.740005  ...            0    []   \n",
       "8               大朗镇石厦村银丰西街  113.979848,22.921794  ...            0    []   \n",
       "9                 厚街镇三屯管理区  113.679794,22.960222  ...            0    []   \n",
       "10                  高埗镇塘厦村  113.758025,23.120748  ...            0    []   \n",
       "11              凤岗镇天堂新街148  114.114004,22.735529  ...            0    []   \n",
       "12                 纵队路185号  113.820874,22.885636  ...            0    []   \n",
       "13    塘厦镇莆心湖大道38号(大利纸品厂对面)  114.063497,22.797171  ...            0    []   \n",
       "14        大朗高英大道191号(近榕仔路)  113.925198,22.967899  ...            0    []   \n",
       "15  福来佳购物广场步行街与良平路交叉口西100米  113.833261,23.009547  ...            0    []   \n",
       "16            高埗镇草墩村地塘尾工业区  113.751762,23.120437  ...            0    []   \n",
       "17                 祥兴街109号  113.904738,22.983656  ...            0    []   \n",
       "18              黄江镇黄京坑村早源路  113.982865,22.876324  ...            0    []   \n",
       "19           高埗镇冼沙二上坊恒康商业街  113.757398,23.094296  ...            0    []   \n",
       "\n",
       "                                             children  \\\n",
       "0                                                  []   \n",
       "1                                                  []   \n",
       "2   [{'id': ' B03018KS5U ', 'name': ' 万润百货(北门) ', ...   \n",
       "3                                                  []   \n",
       "4                                                  []   \n",
       "5                                                  []   \n",
       "6   [{'id': ' B0FFGCXGSI ', 'name': ' 港源百货(西门) ', ...   \n",
       "7                                                  []   \n",
       "8                                                  []   \n",
       "9   [{'id': ' B0FFF31DTD ', 'name': ' 大众时代广场(北门) '...   \n",
       "10                                                 []   \n",
       "11                                                 []   \n",
       "12  [{'id': ' B0FFGJ3CEA ', 'name': ' 家家乐购物广场停车场 '...   \n",
       "13                                                 []   \n",
       "14  [{'id': ' B0FFGJ3FE0 ', 'name': ' 鹏程购物商场(东南门) ...   \n",
       "15  [{'id': ' B0FFHGLYFT ', 'name': ' 福来佳购物广场(东南门)...   \n",
       "16                                                 []   \n",
       "17                                                 []   \n",
       "18                                                 []   \n",
       "19                                                 []   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...       B030100DXS   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "6   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "7   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "8   [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "11  [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13                                                 []               []   \n",
       "14  [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor   indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                  []            3.0   \n",
       "1                 []                    []                  []            4.6   \n",
       "2                 []                    []                  []            3.8   \n",
       "3                 -1                    B1  GD0008360200100048            4.4   \n",
       "4                 []                    []                  []            4.4   \n",
       "5                 []                    []                  []            4.5   \n",
       "6                 []                    []                  []            3.7   \n",
       "7                 []                    []                  []            3.8   \n",
       "8                 []                    []                  []            3.7   \n",
       "9                 []                    []                  []            3.5   \n",
       "10                []                    []                  []            3.5   \n",
       "11                []                    []                  []            3.5   \n",
       "12                []                    []                  []             []   \n",
       "13                []                    []                  []            3.0   \n",
       "14                []                    []                  []            3.8   \n",
       "15                []                    []                  []            3.5   \n",
       "16                []                    []                  []            3.5   \n",
       "17                []                    []                  []            3.5   \n",
       "18                []                    []                  []            3.2   \n",
       "19                []                    []                  []            2.2   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# E-1\n",
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "东莞_商场 = place_text('商场','超级市场',city=\"东莞市\",children=1,extensions='all')\n",
    "东莞_商场\n",
    "df_东莞_商场 = pd.json_normalize(东莞_商场[\"pois\"])\n",
    "df_东莞_商场"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFFPW2PN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>万泰商业城</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>桥东路南一街178</td>\n",
       "      <td>114.119929,23.019675</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFG6AR6O</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉荣购物广场(银丰店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>南城区银丰路2号4楼</td>\n",
       "      <td>113.742204,23.019583</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.6</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B03017WJAO</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>万润百货</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>凤翔路88-96号</td>\n",
       "      <td>114.165635,22.731122</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B03018KS5U ', 'name': ' 万润百货(北门) ', ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFHH3FFJ</td>\n",
       "      <td>B030100DXS</td>\n",
       "      <td>201</td>\n",
       "      <td>百佳超市(文化广场店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;百佳超市|购物服务;商场;普通商场</td>\n",
       "      <td>060414|060102</td>\n",
       "      <td>[]</td>\n",
       "      <td>西正路文化广场天和百货B1层</td>\n",
       "      <td>113.750853,23.040675</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>B030100DXS</td>\n",
       "      <td>-1</td>\n",
       "      <td>B1</td>\n",
       "      <td>GD0008360200100048</td>\n",
       "      <td>4.4</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B03017UX3S</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉荣SPAR购物广场(福海店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>长安镇厦岗社区福海路福海广场</td>\n",
       "      <td>113.745488,22.795174</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.4</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFGFDNPS</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>家家欣商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市|购物服务;商场;商场</td>\n",
       "      <td>060400|060100</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.70413,22.841643</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B03018I4RO</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>港源百货(温周路)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>温周路温塘南路290号</td>\n",
       "      <td>113.823005,23.041046</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGCXGSI ', 'name': ' 港源百货(西门) ', ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B030105I1E</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>惠群购物商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘厦镇石马光明街7号</td>\n",
       "      <td>114.111072,22.740005</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B030103VY8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>联和批发商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>大朗镇石厦村银丰西街</td>\n",
       "      <td>113.979848,22.921794</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B03017UK4G</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>大众时代广场(上涌路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>厚街镇三屯管理区</td>\n",
       "      <td>113.679794,22.960222</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFF31DTD ', 'name': ' 大众时代广场(北门) '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B030104IIA</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>天天虹商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇塘厦村</td>\n",
       "      <td>113.758025,23.120748</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B03018IERC</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>佳民城百货(天堂新街店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>凤岗镇天堂新街148</td>\n",
       "      <td>114.114004,22.735529</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFG8Q8UU</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>家家乐购物广场(纵队路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;购物中心|购物服务;超级市场;超市</td>\n",
       "      <td>060101|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>纵队路185号</td>\n",
       "      <td>113.820874,22.885636</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGJ3CEA ', 'name': ' 家家乐购物广场停车场 '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFINGAE9</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>惠客隆购物广场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>塘厦镇莆心湖大道38号(大利纸品厂对面)</td>\n",
       "      <td>114.063497,22.797171</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0301020T8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>鹏程购物商场(龙湖路店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>大朗高英大道191号(近榕仔路)</td>\n",
       "      <td>113.925198,22.967899</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFGJ3FE0 ', 'name': ' 鹏程购物商场(东南门) ...</td>\n",
       "      <td>[{'title': '门头照', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.8</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFIIWGUN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>福来佳购物广场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>福来佳购物广场步行街与良平路交叉口西100米</td>\n",
       "      <td>113.833261,23.009547</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFHGLYFT ', 'name': ' 福来佳购物广场(东南门)...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B030101W1L</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>嘉华购物商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;商场;普通商场|购物服务;超级市场;超市</td>\n",
       "      <td>060102|060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇草墩村地塘尾工业区</td>\n",
       "      <td>113.751762,23.120437</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B030104DWB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>曙光百货商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>祥兴街109号</td>\n",
       "      <td>113.904738,22.983656</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B030104OZW</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>湘和商场</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>黄江镇黄京坑村早源路</td>\n",
       "      <td>113.982865,22.876324</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.2</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B03017WMVB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>文康百货</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;超级市场;超市</td>\n",
       "      <td>060400</td>\n",
       "      <td>[]</td>\n",
       "      <td>高埗镇冼沙二上坊恒康商业街</td>\n",
       "      <td>113.757398,23.094296</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2.2</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype             name tag  \\\n",
       "0   B0FFFPW2PN          []        []            万泰商业城  []   \n",
       "1   B0FFG6AR6O          []        []      嘉荣购物广场(银丰店)  []   \n",
       "2   B03017WJAO          []        []             万润百货  []   \n",
       "3   B0FFHH3FFJ  B030100DXS       201      百佳超市(文化广场店)  []   \n",
       "4   B03017UX3S          []        []  嘉荣SPAR购物广场(福海店)  []   \n",
       "5   B0FFGFDNPS          []        []            家家欣商场  []   \n",
       "6   B03018I4RO          []        []        港源百货(温周路)  []   \n",
       "7   B030105I1E          []        []           惠群购物商场  []   \n",
       "8   B030103VY8          []        []           联和批发商场  []   \n",
       "9   B03017UK4G          []        []     大众时代广场(上涌路店)  []   \n",
       "10  B030104IIA          []        []            天天虹商场  []   \n",
       "11  B03018IERC          []        []     佳民城百货(天堂新街店)  []   \n",
       "12  B0FFG8Q8UU          []        []    家家乐购物广场(纵队路店)  []   \n",
       "13  B0FFINGAE9          []        []          惠客隆购物广场  []   \n",
       "14  B0301020T8          []        []     鹏程购物商场(龙湖路店)  []   \n",
       "15  B0FFIIWGUN          []        []          福来佳购物广场  []   \n",
       "16  B030101W1L          []        []           嘉华购物商场  []   \n",
       "17  B030104DWB          []        []           曙光百货商场  []   \n",
       "18  B030104OZW          []        []             湘和商场  []   \n",
       "19  B03017WMVB          []        []             文康百货  []   \n",
       "\n",
       "                           type       typecode biz_type  \\\n",
       "0     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "1     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "2     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "3   购物服务;超级市场;百佳超市|购物服务;商场;普通商场  060414|060102       []   \n",
       "4                  购物服务;超级市场;超市         060400       []   \n",
       "5       购物服务;超级市场;超市|购物服务;商场;商场  060400|060100       []   \n",
       "6     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "7                  购物服务;超级市场;超市         060400       []   \n",
       "8                  购物服务;超级市场;超市         060400       []   \n",
       "9     购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "10    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "11    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "12    购物服务;商场;购物中心|购物服务;超级市场;超市  060101|060400       []   \n",
       "13    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "14                 购物服务;超级市场;超市         060400       []   \n",
       "15                 购物服务;超级市场;超市         060400       []   \n",
       "16    购物服务;商场;普通商场|购物服务;超级市场;超市  060102|060400       []   \n",
       "17                 购物服务;超级市场;超市         060400       []   \n",
       "18                 购物服务;超级市场;超市         060400       []   \n",
       "19                 购物服务;超级市场;超市         060400       []   \n",
       "\n",
       "                   address              location  ... discount_num event  \\\n",
       "0                桥东路南一街178  114.119929,23.019675  ...            0    []   \n",
       "1               南城区银丰路2号4楼  113.742204,23.019583  ...            0    []   \n",
       "2                凤翔路88-96号  114.165635,22.731122  ...            0    []   \n",
       "3           西正路文化广场天和百货B1层  113.750853,23.040675  ...            0    []   \n",
       "4           长安镇厦岗社区福海路福海广场  113.745488,22.795174  ...            0    []   \n",
       "5                       []   113.70413,22.841643  ...            0    []   \n",
       "6              温周路温塘南路290号  113.823005,23.041046  ...            0    []   \n",
       "7               塘厦镇石马光明街7号  114.111072,22.740005  ...            0    []   \n",
       "8               大朗镇石厦村银丰西街  113.979848,22.921794  ...            0    []   \n",
       "9                 厚街镇三屯管理区  113.679794,22.960222  ...            0    []   \n",
       "10                  高埗镇塘厦村  113.758025,23.120748  ...            0    []   \n",
       "11              凤岗镇天堂新街148  114.114004,22.735529  ...            0    []   \n",
       "12                 纵队路185号  113.820874,22.885636  ...            0    []   \n",
       "13    塘厦镇莆心湖大道38号(大利纸品厂对面)  114.063497,22.797171  ...            0    []   \n",
       "14        大朗高英大道191号(近榕仔路)  113.925198,22.967899  ...            0    []   \n",
       "15  福来佳购物广场步行街与良平路交叉口西100米  113.833261,23.009547  ...            0    []   \n",
       "16            高埗镇草墩村地塘尾工业区  113.751762,23.120437  ...            0    []   \n",
       "17                 祥兴街109号  113.904738,22.983656  ...            0    []   \n",
       "18              黄江镇黄京坑村早源路  113.982865,22.876324  ...            0    []   \n",
       "19           高埗镇冼沙二上坊恒康商业街  113.757398,23.094296  ...            0    []   \n",
       "\n",
       "                                             children  \\\n",
       "0                                                  []   \n",
       "1                                                  []   \n",
       "2   [{'id': ' B03018KS5U ', 'name': ' 万润百货(北门) ', ...   \n",
       "3                                                  []   \n",
       "4                                                  []   \n",
       "5                                                  []   \n",
       "6   [{'id': ' B0FFGCXGSI ', 'name': ' 港源百货(西门) ', ...   \n",
       "7                                                  []   \n",
       "8                                                  []   \n",
       "9   [{'id': ' B0FFF31DTD ', 'name': ' 大众时代广场(北门) '...   \n",
       "10                                                 []   \n",
       "11                                                 []   \n",
       "12  [{'id': ' B0FFGJ3CEA ', 'name': ' 家家乐购物广场停车场 '...   \n",
       "13                                                 []   \n",
       "14  [{'id': ' B0FFGJ3FE0 ', 'name': ' 鹏程购物商场(东南门) ...   \n",
       "15  [{'id': ' B0FFHGLYFT ', 'name': ' 福来佳购物广场(东南门)...   \n",
       "16                                                 []   \n",
       "17                                                 []   \n",
       "18                                                 []   \n",
       "19                                                 []   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...       B030100DXS   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "6   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "7   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "8   [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "11  [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13                                                 []               []   \n",
       "14  [{'title': '门头照', 'url': 'http://store.is.auto...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor   indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                  []            3.0   \n",
       "1                 []                    []                  []            4.6   \n",
       "2                 []                    []                  []            3.8   \n",
       "3                 -1                    B1  GD0008360200100048            4.4   \n",
       "4                 []                    []                  []            4.4   \n",
       "5                 []                    []                  []            4.5   \n",
       "6                 []                    []                  []            3.7   \n",
       "7                 []                    []                  []            3.8   \n",
       "8                 []                    []                  []            3.7   \n",
       "9                 []                    []                  []            3.5   \n",
       "10                []                    []                  []            3.5   \n",
       "11                []                    []                  []            3.5   \n",
       "12                []                    []                  []             []   \n",
       "13                []                    []                  []            3.0   \n",
       "14                []                    []                  []            3.8   \n",
       "15                []                    []                  []            3.5   \n",
       "16                []                    []                  []            3.5   \n",
       "17                []                    []                  []            3.5   \n",
       "18                []                    []                  []            3.2   \n",
       "19                []                    []                  []            2.2   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "df_东莞_商场 = pd.json_normalize(东莞_商场[\"pois\"])\n",
    "df_东莞_商场_文康百货 = pd.json_normalize(东莞_商场[\"pois\"][7][\"children\"])\n",
    "display(df_东莞_商场,df_东莞_商场_文康百货)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 周边搜素"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "# F-1 \n",
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '883',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFKMKCM4',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '来电(呈茶隐贤山庄店)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '隐贤山庄水上乐园对面3号铺',\n",
       "   'location': '114.028079,22.975902',\n",
       "   'tel': '4008845966',\n",
       "   'distance': '49',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJDWWEB',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '隐贤山庄水上乐园大门售票处',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '霞坑竹园路隐贤山庄B区停车场(唐宫渔湾餐厅旁)',\n",
       "   'location': '114.027470,22.975737',\n",
       "   'tel': [],\n",
       "   'distance': '80',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKOXVTR',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '来电(隐贤山庄水上乐园)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内',\n",
       "   'location': '114.027829,22.975357',\n",
       "   'tel': '4008845966',\n",
       "   'distance': '107',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF609JG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '隐贤山庄中餐厅(常平店)',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '常平镇隐贤山庄大道8号(酒店附近)',\n",
       "   'location': '114.026823,22.976117',\n",
       "   'tel': '0769-81089109;0769-26783344',\n",
       "   'distance': '115',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKUMG4Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '隐贤员工之家',\n",
       "   'type': '商务住宅;住宅区;宿舍',\n",
       "   'typecode': '120303',\n",
       "   'biz_type': [],\n",
       "   'address': '康和路与聚富大道交叉口东南150米',\n",
       "   'location': '114.029242,22.976525',\n",
       "   'tel': [],\n",
       "   'distance': '136',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03017W4O3',\n",
       "   'parent': 'B03010279N',\n",
       "   'childtype': '302',\n",
       "   'name': '唐宫渔湾',\n",
       "   'type': '餐饮服务;中餐厅;海鲜酒楼',\n",
       "   'typecode': '050119',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '常平镇隐贤山庄大道8号(丽城假日酒店附近)',\n",
       "   'location': '114.026912,22.975483',\n",
       "   'tel': '0769-83398888',\n",
       "   'distance': '139',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFH6OH6A',\n",
       "   'parent': 'B03010279N',\n",
       "   'childtype': '302',\n",
       "   'name': '丽城海鲜蒸汽火锅',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'typecode': '050117',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '丽城隐贤山庄大道8号(常平镇,隐贤大道,隐贤山庄,常马大道路口)',\n",
       "   'location': '114.026952,22.975440',\n",
       "   'tel': '0769-83398888',\n",
       "   'distance': '139',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03018KI8N',\n",
       "   'parent': 'B03010279N',\n",
       "   'childtype': '302',\n",
       "   'name': '莲花西餐厅',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'typecode': '050200',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '常平镇隐贤山庄大道8号隐贤山庄酒店二楼',\n",
       "   'location': '114.026110,22.976600',\n",
       "   'tel': '18122981163',\n",
       "   'distance': '188',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03017W95Z',\n",
       "   'parent': 'B0FFH5BE9Y',\n",
       "   'childtype': '306',\n",
       "   'name': '隐贤山庄水上游乐世界售票处',\n",
       "   'type': '生活服务;售票处;公园景点售票处',\n",
       "   'typecode': '070306',\n",
       "   'biz_type': [],\n",
       "   'address': '霞坑竹园路附近',\n",
       "   'location': '114.027045,22.974701',\n",
       "   'tel': [],\n",
       "   'distance': '201',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFMB01Y0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '聚富花园翠景轩A座',\n",
       "   'type': '商务住宅;商务住宅相关;商务住宅相关',\n",
       "   'typecode': '120000',\n",
       "   'biz_type': [],\n",
       "   'address': '横江聚富大道厦聚富花园内',\n",
       "   'location': '114.028725,22.978092',\n",
       "   'tel': [],\n",
       "   'distance': '213',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLPRDUT',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '小电(榴莲留恋茶餐厅)',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'biz_type': 'diner',\n",
       "   'address': [],\n",
       "   'location': '114.026327,22.977569',\n",
       "   'tel': [],\n",
       "   'distance': '214',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK25D8A',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '祥记餐厅',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '霞坑竹园路',\n",
       "   'location': '114.025973,22.977468',\n",
       "   'tel': [],\n",
       "   'distance': '237',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJJ5RFJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '隆江猪脚饭',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '横江厦村四队20号01',\n",
       "   'location': '114.025947,22.977468',\n",
       "   'tel': '18925444247;13553826427',\n",
       "   'distance': '239',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJCRD53',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '丽香餐厅',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '常马路丽丰花园底商',\n",
       "   'location': '114.025836,22.977418',\n",
       "   'tel': '18576347108',\n",
       "   'distance': '246',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLLCTQY',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '怪兽充电(蒸味香)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '霞坑竹园路隐贤山庄大道8号',\n",
       "   'location': '114.025806,22.977410',\n",
       "   'tel': [],\n",
       "   'distance': '248',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKTPWTW',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '蒸味香',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '霞坑竹园路隐贤山庄大道8号',\n",
       "   'location': '114.025806,22.977410',\n",
       "   'tel': [],\n",
       "   'distance': '248',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHVF3TJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '重庆酸辣粉',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '隐贤山庄大道丽丰花园底商',\n",
       "   'location': '114.025720,22.977394',\n",
       "   'tel': [],\n",
       "   'distance': '255',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHQBXWF',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '卧龙命相馆',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '常平隐贤山庄东门',\n",
       "   'location': '114.025655,22.977382',\n",
       "   'tel': [],\n",
       "   'distance': '260',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFFPQFIW',\n",
       "   'parent': 'B0FFG26S6J',\n",
       "   'childtype': '306',\n",
       "   'name': '滑翔飞艇售票处',\n",
       "   'type': '生活服务;售票处;公园景点售票处',\n",
       "   'typecode': '070306',\n",
       "   'biz_type': [],\n",
       "   'address': '常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内',\n",
       "   'location': '114.026190,22.974570',\n",
       "   'tel': [],\n",
       "   'distance': '263',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '2',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLLD0KE',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '怪兽充电(黑龙茶常平分店)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '常平镇隐贤山庄大道8号隐贤山庄内',\n",
       "   'location': '114.025398,22.976932',\n",
       "   'tel': [],\n",
       "   'distance': '267',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# F-2 json信息\n",
    "import pandas as pd\n",
    "隐贤山庄_周边POI = place_around(隐贤山庄_location)\n",
    "隐贤山庄_周边POI\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFKMKCM4</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>来电(呈茶隐贤山庄店)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>隐贤山庄水上乐园对面3号铺</td>\n",
       "      <td>114.028079,22.975902</td>\n",
       "      <td>4008845966</td>\n",
       "      <td>49</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFJDWWEB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>隐贤山庄水上乐园大门售票处</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>霞坑竹园路隐贤山庄B区停车场(唐宫渔湾餐厅旁)</td>\n",
       "      <td>114.027470,22.975737</td>\n",
       "      <td>[]</td>\n",
       "      <td>80</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFKOXVTR</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>来电(隐贤山庄水上乐园)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内</td>\n",
       "      <td>114.027829,22.975357</td>\n",
       "      <td>4008845966</td>\n",
       "      <td>107</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFF609JG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>隐贤山庄中餐厅(常平店)</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>常平镇隐贤山庄大道8号(酒店附近)</td>\n",
       "      <td>114.026823,22.976117</td>\n",
       "      <td>0769-81089109;0769-26783344</td>\n",
       "      <td>115</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFKUMG4Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>隐贤员工之家</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "      <td>120303</td>\n",
       "      <td>[]</td>\n",
       "      <td>康和路与聚富大道交叉口东南150米</td>\n",
       "      <td>114.029242,22.976525</td>\n",
       "      <td>[]</td>\n",
       "      <td>136</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B03017W4O3</td>\n",
       "      <td>B03010279N</td>\n",
       "      <td>302</td>\n",
       "      <td>唐宫渔湾</td>\n",
       "      <td>餐饮服务;中餐厅;海鲜酒楼</td>\n",
       "      <td>050119</td>\n",
       "      <td>diner</td>\n",
       "      <td>常平镇隐贤山庄大道8号(丽城假日酒店附近)</td>\n",
       "      <td>114.026912,22.975483</td>\n",
       "      <td>0769-83398888</td>\n",
       "      <td>139</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFH6OH6A</td>\n",
       "      <td>B03010279N</td>\n",
       "      <td>302</td>\n",
       "      <td>丽城海鲜蒸汽火锅</td>\n",
       "      <td>餐饮服务;中餐厅;火锅店</td>\n",
       "      <td>050117</td>\n",
       "      <td>diner</td>\n",
       "      <td>丽城隐贤山庄大道8号(常平镇,隐贤大道,隐贤山庄,常马大道路口)</td>\n",
       "      <td>114.026952,22.975440</td>\n",
       "      <td>0769-83398888</td>\n",
       "      <td>139</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B03018KI8N</td>\n",
       "      <td>B03010279N</td>\n",
       "      <td>302</td>\n",
       "      <td>莲花西餐厅</td>\n",
       "      <td>餐饮服务;外国餐厅;外国餐厅</td>\n",
       "      <td>050200</td>\n",
       "      <td>diner</td>\n",
       "      <td>常平镇隐贤山庄大道8号隐贤山庄酒店二楼</td>\n",
       "      <td>114.026110,22.976600</td>\n",
       "      <td>18122981163</td>\n",
       "      <td>188</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B03017W95Z</td>\n",
       "      <td>B0FFH5BE9Y</td>\n",
       "      <td>306</td>\n",
       "      <td>隐贤山庄水上游乐世界售票处</td>\n",
       "      <td>生活服务;售票处;公园景点售票处</td>\n",
       "      <td>070306</td>\n",
       "      <td>[]</td>\n",
       "      <td>霞坑竹园路附近</td>\n",
       "      <td>114.027045,22.974701</td>\n",
       "      <td>[]</td>\n",
       "      <td>201</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFMB01Y0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>聚富花园翠景轩A座</td>\n",
       "      <td>商务住宅;商务住宅相关;商务住宅相关</td>\n",
       "      <td>120000</td>\n",
       "      <td>[]</td>\n",
       "      <td>横江聚富大道厦聚富花园内</td>\n",
       "      <td>114.028725,22.978092</td>\n",
       "      <td>[]</td>\n",
       "      <td>213</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFLPRDUT</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>小电(榴莲留恋茶餐厅)</td>\n",
       "      <td>餐饮服务;快餐厅;茶餐厅</td>\n",
       "      <td>050305</td>\n",
       "      <td>diner</td>\n",
       "      <td>[]</td>\n",
       "      <td>114.026327,22.977569</td>\n",
       "      <td>[]</td>\n",
       "      <td>214</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFK25D8A</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>祥记餐厅</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>霞坑竹园路</td>\n",
       "      <td>114.025973,22.977468</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFJJ5RFJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>隆江猪脚饭</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>横江厦村四队20号01</td>\n",
       "      <td>114.025947,22.977468</td>\n",
       "      <td>18925444247;13553826427</td>\n",
       "      <td>239</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFJCRD53</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>丽香餐厅</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>常马路丽丰花园底商</td>\n",
       "      <td>114.025836,22.977418</td>\n",
       "      <td>18576347108</td>\n",
       "      <td>246</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFLLCTQY</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>怪兽充电(蒸味香)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>霞坑竹园路隐贤山庄大道8号</td>\n",
       "      <td>114.025806,22.977410</td>\n",
       "      <td>[]</td>\n",
       "      <td>248</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFKTPWTW</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>蒸味香</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>霞坑竹园路隐贤山庄大道8号</td>\n",
       "      <td>114.025806,22.977410</td>\n",
       "      <td>[]</td>\n",
       "      <td>248</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFHVF3TJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>重庆酸辣粉</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>隐贤山庄大道丽丰花园底商</td>\n",
       "      <td>114.025720,22.977394</td>\n",
       "      <td>[]</td>\n",
       "      <td>255</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFHQBXWF</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>卧龙命相馆</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平隐贤山庄东门</td>\n",
       "      <td>114.025655,22.977382</td>\n",
       "      <td>[]</td>\n",
       "      <td>260</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFFPQFIW</td>\n",
       "      <td>B0FFG26S6J</td>\n",
       "      <td>306</td>\n",
       "      <td>滑翔飞艇售票处</td>\n",
       "      <td>生活服务;售票处;公园景点售票处</td>\n",
       "      <td>070306</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内</td>\n",
       "      <td>114.026190,22.974570</td>\n",
       "      <td>[]</td>\n",
       "      <td>263</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFLLD0KE</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>怪兽充电(黑龙茶常平分店)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>常平镇隐贤山庄大道8号隐贤山庄内</td>\n",
       "      <td>114.025398,22.976932</td>\n",
       "      <td>[]</td>\n",
       "      <td>267</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype           name                type  \\\n",
       "0   B0FFKMKCM4          []        []    来电(呈茶隐贤山庄店)       生活服务;共享设备;充电宝   \n",
       "1   B0FFJDWWEB          []        []  隐贤山庄水上乐园大门售票处  生活服务;生活服务场所;生活服务场所   \n",
       "2   B0FFKOXVTR          []        []   来电(隐贤山庄水上乐园)       生活服务;共享设备;充电宝   \n",
       "3   B0FFF609JG          []        []   隐贤山庄中餐厅(常平店)        餐饮服务;中餐厅;中餐厅   \n",
       "4   B0FFKUMG4Z          []        []         隐贤员工之家         商务住宅;住宅区;宿舍   \n",
       "5   B03017W4O3  B03010279N       302           唐宫渔湾       餐饮服务;中餐厅;海鲜酒楼   \n",
       "6   B0FFH6OH6A  B03010279N       302       丽城海鲜蒸汽火锅        餐饮服务;中餐厅;火锅店   \n",
       "7   B03018KI8N  B03010279N       302          莲花西餐厅      餐饮服务;外国餐厅;外国餐厅   \n",
       "8   B03017W95Z  B0FFH5BE9Y       306  隐贤山庄水上游乐世界售票处    生活服务;售票处;公园景点售票处   \n",
       "9   B0FFMB01Y0          []        []      聚富花园翠景轩A座  商务住宅;商务住宅相关;商务住宅相关   \n",
       "10  B0FFLPRDUT          []        []    小电(榴莲留恋茶餐厅)        餐饮服务;快餐厅;茶餐厅   \n",
       "11  B0FFK25D8A          []        []           祥记餐厅        餐饮服务;中餐厅;中餐厅   \n",
       "12  B0FFJJ5RFJ          []        []          隆江猪脚饭        餐饮服务;中餐厅;中餐厅   \n",
       "13  B0FFJCRD53          []        []           丽香餐厅        餐饮服务;快餐厅;快餐厅   \n",
       "14  B0FFLLCTQY          []        []      怪兽充电(蒸味香)       生活服务;共享设备;充电宝   \n",
       "15  B0FFKTPWTW          []        []            蒸味香        餐饮服务;中餐厅;中餐厅   \n",
       "16  B0FFHVF3TJ          []        []          重庆酸辣粉        餐饮服务;快餐厅;快餐厅   \n",
       "17  B0FFHQBXWF          []        []          卧龙命相馆  生活服务;生活服务场所;生活服务场所   \n",
       "18  B0FFFPQFIW  B0FFG26S6J       306        滑翔飞艇售票处    生活服务;售票处;公园景点售票处   \n",
       "19  B0FFLLD0KE          []        []  怪兽充电(黑龙茶常平分店)       生活服务;共享设备;充电宝   \n",
       "\n",
       "   typecode biz_type                           address              location  \\\n",
       "0    072101       []                     隐贤山庄水上乐园对面3号铺  114.028079,22.975902   \n",
       "1    070000       []           霞坑竹园路隐贤山庄B区停车场(唐宫渔湾餐厅旁)  114.027470,22.975737   \n",
       "2    072101       []  常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内  114.027829,22.975357   \n",
       "3    050100    diner                 常平镇隐贤山庄大道8号(酒店附近)  114.026823,22.976117   \n",
       "4    120303       []                 康和路与聚富大道交叉口东南150米  114.029242,22.976525   \n",
       "5    050119    diner             常平镇隐贤山庄大道8号(丽城假日酒店附近)  114.026912,22.975483   \n",
       "6    050117    diner  丽城隐贤山庄大道8号(常平镇,隐贤大道,隐贤山庄,常马大道路口)  114.026952,22.975440   \n",
       "7    050200    diner               常平镇隐贤山庄大道8号隐贤山庄酒店二楼  114.026110,22.976600   \n",
       "8    070306       []                           霞坑竹园路附近  114.027045,22.974701   \n",
       "9    120000       []                      横江聚富大道厦聚富花园内  114.028725,22.978092   \n",
       "10   050305    diner                                []  114.026327,22.977569   \n",
       "11   050100    diner                             霞坑竹园路  114.025973,22.977468   \n",
       "12   050100    diner                       横江厦村四队20号01  114.025947,22.977468   \n",
       "13   050300    diner                         常马路丽丰花园底商  114.025836,22.977418   \n",
       "14   072101       []                     霞坑竹园路隐贤山庄大道8号  114.025806,22.977410   \n",
       "15   050100    diner                     霞坑竹园路隐贤山庄大道8号  114.025806,22.977410   \n",
       "16   050300    diner                      隐贤山庄大道丽丰花园底商  114.025720,22.977394   \n",
       "17   070000       []                          常平隐贤山庄东门  114.025655,22.977382   \n",
       "18   070306       []  常平镇丽城隐贤山庄大道8号隐贤山庄旅游风景区隐贤山庄快活谷乐园内  114.026190,22.974570   \n",
       "19   072101       []                  常平镇隐贤山庄大道8号隐贤山庄内  114.025398,22.976932   \n",
       "\n",
       "                            tel distance biz_ext importance shopid shopinfo  \\\n",
       "0                    4008845966       49      []         []     []        0   \n",
       "1                            []       80      []         []     []        0   \n",
       "2                    4008845966      107      []         []     []        0   \n",
       "3   0769-81089109;0769-26783344      115      []         []     []        0   \n",
       "4                            []      136      []         []     []        0   \n",
       "5                 0769-83398888      139      []         []     []        0   \n",
       "6                 0769-83398888      139      []         []     []        0   \n",
       "7                   18122981163      188      []         []     []        0   \n",
       "8                            []      201      []         []     []        2   \n",
       "9                            []      213      []         []     []        0   \n",
       "10                           []      214      []         []     []        0   \n",
       "11                           []      237      []         []     []        0   \n",
       "12      18925444247;13553826427      239      []         []     []        0   \n",
       "13                  18576347108      246      []         []     []        0   \n",
       "14                           []      248      []         []     []        0   \n",
       "15                           []      248      []         []     []        0   \n",
       "16                           []      255      []         []     []        0   \n",
       "17                           []      260      []         []     []        0   \n",
       "18                           []      263      []         []     []        2   \n",
       "19                           []      267      []         []     []        0   \n",
       "\n",
       "   poiweight photos  \n",
       "0         []     []  \n",
       "1         []     []  \n",
       "2         []     []  \n",
       "3         []     []  \n",
       "4         []     []  \n",
       "5         []     []  \n",
       "6         []     []  \n",
       "7         []     []  \n",
       "8         []     []  \n",
       "9         []     []  \n",
       "10        []     []  \n",
       "11        []     []  \n",
       "12        []     []  \n",
       "13        []     []  \n",
       "14        []     []  \n",
       "15        []     []  \n",
       "16        []     []  \n",
       "17        []     []  \n",
       "18        []     []  \n",
       "19        []     []  "
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_隐贤山庄_周边POI = pd.json_normalize(隐贤山庄_周边POI['pois'])\n",
    "df_隐贤山庄_周边POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 静态地图  \n",
    "思考：能够精准的定位，更快速度、更少出错的基础上有效地进行"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEX+/fzM46f++f77+f3P56dmY1+t6378+vpeXl3S4LKRkpTY08zQ56r8/PqQlJLO5KnGdAnP3rbO5qjt6+j4+PjS4LPP56r2+vFnb1nb1sn6+vvZ2sL4+PfZ2cT5+fnS6K/N5ard183a2MfU6bHt9N7z8e5iZGfQ46rQ56zY6rq9xMqkpqjh3NP7+/fy8ODQ5a3V3rjr9NvU2Nr49/UHksb8+/tXmt3F3KDo5Nrx8OzHxL2htMfx7uf1+e11dnnq6OLg7sb39/DFvrOOj4/a67zo79qaj4CnqaqFX9rQ4q2ho6TL46S4ua7d2tTz9+zw9+YDi/epyIXv7efA05qvraDW6rbXoFe3tcD4+vT08/L7/Pre38yoo5rz+ezh78n39vPv7uvv9+SXiXnS1cvj5tXl8ND29/bHx8vf2c/7+/jt7Oz29fPQ56ri4eXy8OPo5N3k39jI36ObhszU6bOkhUrju3LS4bHWjCTT4Lbz9PbW6rTQ46zTk0Dpypfp8tfm8dLi3dXiuoXJexXDxcWys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qj84xrFbh+hgzcMGLqrcI1qyG84Sr3LWEJECY5oBpsPyemBM2RH4I6bzxx+HfDhaggf2rfi5uBa6gZFbNeg1OAD2KLpH3/DABFrlMgSKziiGYqMYWTSB67OFQBpFcnJSZEG8aEPIXXnFS19VhlmHD0IpOYg0HBCRAyOaIaCEEGg+3k7qxgv+4rBsd3xHXCpwsdQm+Of9TsMNXtFDY5ohplqe6OmcSkDaatXbFcFnz54PMUlZOrxA4McQ7GDI5phHkImRnGLPtLpQyPE/vjmEm5wsWSzARPEDMERzfj/AfMQDLOXujbTAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x2899C44F828>"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=隐贤山庄_location,zoom=17)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ransformation(locations,coordsys=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'locations':locations,\n",
    "        'coordsys':coordsys,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '114.033023546007,22.973673231337'}"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ransformation('114.027924,22.976323','gps')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 天气查询  \n",
    "思考：对于实时工作的模拟，能够产生更贴近现实情况的、更逼近真实的结果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(city,extensions='all')->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key_ga,\n",
    "        'city':city,\n",
    "        'extensions':'all',\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '东莞市',\n",
       "   'adcode': '441900',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-04-22 23:22:45',\n",
       "   'casts': [{'date': '2020-04-22',\n",
       "     'week': '3',\n",
       "     'dayweather': '小雨',\n",
       "     'nightweather': '阵雨',\n",
       "     'daytemp': '21',\n",
       "     'nighttemp': '17',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-04-23',\n",
       "     'week': '4',\n",
       "     'dayweather': '阵雨',\n",
       "     'nightweather': '阵雨',\n",
       "     'daytemp': '20',\n",
       "     'nighttemp': '16',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-04-24',\n",
       "     'week': '5',\n",
       "     'dayweather': '中雨',\n",
       "     'nightweather': '阵雨',\n",
       "     'daytemp': '16',\n",
       "     'nighttemp': '15',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-04-25',\n",
       "     'week': '6',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '21',\n",
       "     'nighttemp': '15',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather('东莞')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 输入提示  \n",
    "思考：助于我们获取精准的结果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "def tips(keywords,types,location=None,city=None,citylimit=None,datatype=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params={\n",
    "        'key': key_ga,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'citylimit':False,\n",
    "        'datatype':datatype,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '肯德基',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKEPXS2',\n",
       "   'name': '肯德基(望京西店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.474027,39.997731',\n",
       "   'address': '望京西园4区410号综合楼1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A7BM4H',\n",
       "   'name': '肯德基(花家地店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.469251,39.985551',\n",
       "   'address': '花家地小区1号商业楼',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A7FVJQ',\n",
       "   'name': '肯德基(中福百货店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.463373,40.000423',\n",
       "   'address': '望京南湖东园201号楼1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A80GPM',\n",
       "   'name': '肯德基(酒仙桥二店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.495399,39.961907',\n",
       "   'address': '酒仙桥路39号久隆百货B1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A9P8KT',\n",
       "   'name': '肯德基(太阳宫店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.448473,39.971184',\n",
       "   'address': '太阳宫中路12号凯德MallF1层01-13A-14-15B',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A80HAN',\n",
       "   'name': '肯德基(霄云路店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.464837,39.959331',\n",
       "   'address': '霄云路27号中国庆安大厦1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF3DEDV',\n",
       "   'name': '肯德基(凤凰汇购物中心)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.456296,39.962578',\n",
       "   'address': '曙光西里甲5号院24号楼凤凰汇购物中心B1层104号',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A8ZIKF',\n",
       "   'name': '肯德基(西坝河店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.436211,39.968957',\n",
       "   'address': '西坝河西里',\n",
       "   'typecode': '050301',\n",
       "   'city': []},\n",
       "  {'id': 'B000A7CO8L',\n",
       "   'name': '肯德基(国展店)',\n",
       "   'district': '北京市朝阳区',\n",
       "   'adcode': '110105',\n",
       "   'location': '116.444959,39.960626',\n",
       "   'address': '静安西街10号国展宾馆1层',\n",
       "   'typecode': '050301',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tips('肯德基','050301','116.481488,39.990464',city='北京',datatype='all')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 交通态势  \n",
    "思考：通过对道路情况分析，更精确提供可行性路线"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [],
   "source": [
    "def traffic(rectangle,level,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key': key_ga,\n",
    "        'rectangle':rectangle,\n",
    "        'level':level,\n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北三环路：双向畅通。',\n",
       "  'evaluation': {'expedite': '100.00%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '1',\n",
       "   'description': '整体畅通'}}}"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "traffic('116.351147,39.966309;116.357134,39.968727',level=5,extensions='base')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 批量请求  \n",
    "思考：提供大量的请求反馈"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011025249141158756979738100020465898738',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.127',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}},\n",
       " {'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '878',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFIT4V37',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.509300,39.261324',\n",
       "     'distance': '1935',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '昌丰路与昌盛街交叉口东150米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '利民老年公寓',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM1WN4Q',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.473800,39.284305',\n",
       "     'distance': '2684',\n",
       "     'tel': '13102692203;15032998415',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永丰路与建设大街交叉口北行200米再东行200米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/02f9a9353f15bb7c882c281addaca79a',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/462da2324343c04c255e5b6b55403952',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dfc87db906b2994dae80342d4563b1e9',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '唐山兵途枪战运动',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080301',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFF2T193',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471098,39.281979',\n",
       "     'distance': '2861',\n",
       "     'tel': '0315-8037777',\n",
       "     'biz_ext': {'rating': '4.3', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街与永丰路交叉口西南角',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/c8fd0a18befbe849ce8df7908d88ed24',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/468baaf5453e6c1b38d0c4c417183b40',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/a0a5fff0b63e60b3508c2ecb197d07e5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;夜总会',\n",
       "     'shopinfo': '0',\n",
       "     'name': '一代佳人夜总会',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKPS8TZ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.471344,39.273170',\n",
       "     'distance': '2864',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街与永丰路交叉口南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '新少年跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080402',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013B031EO',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.469256,39.278622',\n",
       "     'distance': '2989',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '曙光街23号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;度假疗养场所;疗养院',\n",
       "     'shopinfo': '0',\n",
       "     'name': '光荣院(曙光街)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080500',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFHF91Y9',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.467429,39.273141',\n",
       "     'distance': '3196',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '垦丰大街8号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;休闲场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '曹妃甸区老干部活动中心',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLDK6TP',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466867,39.281969',\n",
       "     'distance': '3222',\n",
       "     'tel': '17736580504',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '建设大街红赫世家东底商58号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/b59e23956de23e47401416a6b4808c0c',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '0',\n",
       "     'name': '泽仁跆拳道',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFH9MB8R',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.527757,39.301926',\n",
       "     'distance': '3343',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '杨柏线北50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '陶乐宝儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080304',\n",
       "     'adname': '曹妃甸区',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLOR4DN',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.466494,39.287701',\n",
       "     'distance': '3395',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '青年城二期东底商24号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/29997dd7b0c66b1dc6f15a253918ccf2',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/098df33a76f03e8d55672683f63da5d8',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;酒吧',\n",
       "     'shopinfo': '1',\n",
       "     'name': 'ELK酒吧',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '滦南县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMB6BAG',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '118.528670,39.302678',\n",
       "     'distance': '3457',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '唐山市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': '下午时光台球俱乐部',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011025249141158756979738100020465898738',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.123',\n",
       "   'Content-Length': 5564,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}}]"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests\n",
    "key_ga =\"78c38dd8212a470f639758160acc4c05\"\n",
    "parameters = {\n",
    "        'key': key_ga,\n",
    "    }\n",
    "body = {\n",
    "        \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=78c38dd8212a470f639758160acc4c05&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=78c38dd8212a470f639758160acc4c05&location=118.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "    ]}\n",
    "response = requests.get('https://restapi.amap.com/v3/batch?',params=parameters,json=body)\n",
    "data = response.json()\n",
    "data"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [],
   "source": [
    "def CEnclosure(name='围栏',center='115.672126,38.817129',radius= '1000',valid_time='2020-09-09',desc='围栏'):\n",
    "    parameters = {\n",
    "        'key': key_ga,\n",
    "    }\n",
    "    body = {\n",
    "        'name':name,\n",
    "        \"center\": center,\n",
    "        \"radius\": \"1000\",\n",
    "        \"enable\": \"true\",\n",
    "        \"valid_time\": \"2020-09-09\",\n",
    "        \"repeat\": \"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "        \"time\": \"00:00,11:59;13:00,20:59\",\n",
    "        \"desc\": \"围栏\",\n",
    "        \"alert_condition\": \"enter;leave\"\n",
    "    }\n",
    "    response = requests.post('https://restapi.amap.com/v4/geofence/meta',params=parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [],
   "source": [
    "def query():\n",
    "    parameters = {\n",
    "        'key': key_ga,\n",
    "    }\n",
    "    body = {\n",
    "        'name':'围栏'}\n",
    "    response = requests.get('https://restapi.amap.com/v4/geofence/meta',params=parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1, 'page_size': 20, 'rs_list': [], 'total_record': 0},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 轨迹纠偏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [],
   "source": [
    "def trajectory():\n",
    "    parameters = {\n",
    "        'key': key_ga,\n",
    "    }\n",
    "    body = [\n",
    "        {\n",
    "        \"x\": 116.449429,\n",
    "        \"y\": 40.014844,\n",
    "        \"sp\": 4,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 1478831753\n",
    "        },\n",
    "        {\n",
    "        \"x\": 116.449639,\n",
    "        \"y\": 40.014776,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 23\n",
    "        },\n",
    "        {\n",
    "        \"x\": 116.449859,\n",
    "        \"y\": 40.014716,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 111,\n",
    "        \"tm\": 33\n",
    "        }, \n",
    "        {\n",
    "        \"x\": 116.450074,\n",
    "        \"y\": 40.014658,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 110,\n",
    "        \"tm\": 31\n",
    "        }, \n",
    "        {\n",
    "        \"x\": 116.450273,\n",
    "        \"y\": 40.014598,\n",
    "        \"sp\": 3,\n",
    "        \"ag\": 111,\n",
    "        \"tm\": 20\n",
    "        }]\n",
    "    response = requests.get('https://restapi.amap.com/v4/grasproad/driving',params=parameters,json=body)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "trajectory()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设计应用  \n",
    "通过对高德web服务中的api功能操作，结合我的日常生活使用的应用有了一些想法：\n",
    "***将KEEP和美团结合起来，形成一款新型的适合当代人使用的一款应用***\n",
    "由于现今社会的人群越来越多亚健康群体，当代人可能会更注重于健康，因此可以设计一款从运动到饮食指导人们生活越来越健康。路径规划可以用于跑步的路线与寻找美食时进行使用；运动服务可以应用天气查询进行户外运动前的查询是否适宜运动，饮食可以根据天气推荐适合的饮食；搜索POI可以作为寻找一起运动的朋友或者是寻找相关美食或者运动时会有相对应推荐，输入提示可以起到辅助作用，减少人们因为想不起全称而无法寻找的可能。\n",
    "#### 可能使用到的API  \n",
    "1.路径规划  \n",
    "2.搜索POI  \n",
    "3.天气查询  \n",
    "4.输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
